Search and Top Navigation
#4696 closed bug (wontfix)
Opened July 18, 2009 06:12PM UTC
Closed October 20, 2010 03:24AM UTC
Last modified December 10, 2013 03:15PM UTC
Bug with revert and grid : the element goes back to a bad position
Reported by: | yotsumi | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.9.0 |
Component: | ui.draggable | Version: | 1.7.2 |
Keywords: | grid, revert | Cc: | |
Blocked by: | Blocking: |
Description
I have find a bug on the ui.draggable component which appears when i use the options grid and revert.
When you move the draggable element, the first time
it goes back to its initial position, but after, he goes back to a bad position ( a little gap ).
I see it on Firefox 3.5, Firefox 3.1, IE8, IE7 ...
See the example below
Attachments (2)
Change History (5)
Changed July 18, 2009 06:19PM UTC by comment:1
Changed November 17, 2009 09:35AM UTC by comment:2
milestone: | TBD → 1.8 |
---|
Changed June 06, 2010 10:28AM UTC by comment:3
I confirm:
adding
this.originalPageX=a.pageX;this.originalPageY=a.pageY;
before or after
this.originalPosition=this.position=this._generatePosition(a);
in JQuery UI Draggable fixes the problem. This exact code is present in JQuery UI Sortable but seems to be missing in Draggable.
Changed October 20, 2010 03:24AM UTC by comment:4
resolution: | → wontfix |
---|---|
status: | new → closed |
These options won't exist in the rewrite.
I think that this error can be resolved by making the following modification, but don't ask me how's that work!
In ui.draggable
_mouseStart: function(event) {
Before : this.originalPosition = this._generatePosition(event); ''[line 99]''
Add :
this.originalPageX = event.pageX;
this.originalPageY = event.pageY;