aboutsummaryrefslogtreecommitdiffstats
path: root/tests/jquery.simulate.js
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2014-08-19 15:09:28 -0400
committerMike Sherov <mike.sherov@gmail.com>2014-08-20 11:19:36 -0400
commite12e3e12b19e226b90e4a0ec3848e400a80c8267 (patch)
tree24d87306fc7d3c7c051e84ec9eb185b0d3d9cbf7 /tests/jquery.simulate.js
parent233f08e07fc451cff46dff22ba69420ceac72255 (diff)
downloadjquery-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.js2
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;