Switch getMouseEventCoords to use getClientX and getClientY instead of getX and getY
Firefox does not seem to support getX and getY
commitb3f0001e779f0063087ff6044e6c2ffff9b53d51
authorRyan Trinkle <ryan.trinkle@gmail.com>
dateWed 2 Nov 2016, 18:46 (10 years ago)
parent3041a0b
src/Reflex/Dom/Builder/Immediate.hs+1−1
@@ -849,7 +849,7 @@ getKeyEvent = do
849849getMouseEventCoords :: EventM e MouseEvent (Int, Int)
850850getMouseEventCoords = do
851851 e <- event
852− bisequence (getX e, getY e)
852+ bisequence (getClientX e, getClientY e)
853853
854854instance MonadSample t m => MonadSample t (ImmediateDomBuilderT t m) where
855855 {-# INLINABLE sample #-}