diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2014-08-19 15:09:28 -0400 |
---|---|---|
committer | Mike Sherov <mike.sherov@gmail.com> | 2014-08-20 11:19:36 -0400 |
commit | e12e3e12b19e226b90e4a0ec3848e400a80c8267 (patch) | |
tree | 24d87306fc7d3c7c051e84ec9eb185b0d3d9cbf7 /tests/jquery.simulate.js | |
parent | 233f08e07fc451cff46dff22ba69420ceac72255 (diff) | |
download | jquery-ui-e12e3e12b19e226b90e4a0ec3848e400a80c8267.tar.gz jquery-ui-e12e3e12b19e226b90e4a0ec3848e400a80c8267.zip |
Mouse: Only detect out of document mouseups after a mousemove
This prevents the firing of mouseup in the case of IE<9, which will
fire a mousemove event if content is placed under the cursor on
mousedown.
Fixes #7778
Diffstat (limited to 'tests/jquery.simulate.js')
-rw-r--r-- | tests/jquery.simulate.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/jquery.simulate.js b/tests/jquery.simulate.js index 1dd96ac3a..28e8a103b 100644 --- a/tests/jquery.simulate.js +++ b/tests/jquery.simulate.js @@ -144,7 +144,7 @@ $.extend( $.simulate.prototype, { 0: 1, 1: 4, 2: 2 - }[ event.button ] || event.button; + }[ event.button ] || ( event.button === -1 ? 0 : event.button ); } return event; |