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/visual/draggable | |
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/visual/draggable')
-rw-r--r-- | tests/visual/draggable/replaced.html | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/visual/draggable/replaced.html b/tests/visual/draggable/replaced.html new file mode 100644 index 000000000..9b5471694 --- /dev/null +++ b/tests/visual/draggable/replaced.html @@ -0,0 +1,38 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="utf-8"> + <title>Draggable Visual Test</title> + <link rel="stylesheet" href="../../../themes/base/all.css"> + <script src="../../../external/jquery/jquery.js"></script> + <script src="../../../ui/core.js"></script> + <script src="../../../ui/widget.js"></script> + <script src="../../../ui/mouse.js"></script> + <script src="../../../ui/draggable.js"></script> + <script> + $(function() { + $( "#draggable" ) + .draggable() + .bind( "mousedown", function() { + $( this ).html( "<div>replaced</div>" ); + }); + }); + </script> + + <style> + #draggable { + background: green; + height: 75px; + width: 75px; + } + </style> +</head> +<body> + +<p>WHAT: A draggable, whose content is replaced onmousedown.</p> +<p>EXPECTED: In IE8, the draggable can actually be dragged.</p> + +<div id="draggable"><div>content</div></div> + +</body> +</html> |