Search and Top Navigation
#2722 closed bug (fixed)
Opened April 20, 2008 10:00AM UTC
Closed May 04, 2008 02:18PM UTC
Last modified February 26, 2009 12:06PM UTC
Draggable: click event shouldn't fire after dragging
Reported by: | telega | Owned by: | paul |
---|---|---|---|
Priority: | minor | Milestone: | 1.5 |
Component: | ui.core | Version: | 1.2.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
"Click" event shouldn't fire when item is released after being dragged. Sample code:
<script src="jquery.js"></script> <script src="jquery.dimensions.js"></script> <script src="ui.mouse.js"></script> <script src="ui.draggable.js"></script> <script> $(document).ready(function() { $("#test").draggable() .click(function() { alert('click'); }); }); </script> <style> #test { width: 100px; height: 100px; background: lightblue; } </style> <div id="test"></div>
Attachments (0)
Change History (6)
Changed April 21, 2008 03:19PM UTC by comment:1
Changed April 23, 2008 09:49AM UTC by comment:2
status: | new → assigned |
---|
Changed May 04, 2008 07:47AM UTC by comment:3
priority: | major → minor |
---|
Changed May 04, 2008 02:18PM UTC by comment:4
resolution: | → fixed |
---|---|
status: | assigned → closed |
Fixed in r5415!
Changed May 24, 2008 03:39AM UTC by comment:5
milestone: | 1.2.4 |
---|
Milestone 1.2.4 deleted
Changed February 26, 2009 12:06PM UTC by comment:6
milestone: | → 1.5 |
---|
The same thing for Resizables. I have a resizable image, wrapped in a link:
<a href="the link"><img></a>
When I'm done resizing image, click event is fired and causes the link to be executed, which is not expected behavior.