diff options
author | Adam Chlipala <adamc@csail.mit.edu> | 2018-07-15 16:10:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-15 16:10:56 -0400 |
commit | 24cb4d7ac2fa5fb8b5af511f05ed9a673b6f35ec (patch) | |
tree | 96a49c4d42271ddaa5940c75dd13573ca97aa332 /lib/js/urweb.js | |
parent | c98f27c7821f6d8f3add303da692630bba268d1d (diff) | |
parent | b95811e4dab26d770c6d972a456ac0b31b39ca53 (diff) |
Merge pull request #132 from fabriceleal/offsetXY
bring offsetX, offsetY to mouseEvent
Diffstat (limited to 'lib/js/urweb.js')
-rw-r--r-- | lib/js/urweb.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/js/urweb.js b/lib/js/urweb.js index 99b45ec9..ff4c7b7e 100644 --- a/lib/js/urweb.js +++ b/lib/js/urweb.js @@ -553,6 +553,8 @@ function uw_mouseEvent() { _ScreenY : firstGood(ev.screenY, 0), _ClientX : firstGood(ev.clientX, 0), _ClientY : firstGood(ev.clientY, 0), + _OffsetX : firstGood(ev.offsetX, 0), + _OffsetY : firstGood(ev.offsetY, 0), _CtrlKey : firstGood(ev.ctrlKey, false), _ShiftKey : firstGood(ev.shiftKey, false), _AltKey : firstGood(ev.altKey, false), |