Search and Top Navigation
#8286 open bug ()
Opened May 01, 2012 08:19PM UTC
Last modified October 28, 2012 09:04PM UTC
Draggable: Dragged element mouse offset is incorrect when document flow changes
Reported by: | sam | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 2.0.0 |
Component: | ui.draggable | Version: | 1.8.19 |
Keywords: | dbr | Cc: | |
Blocked by: | Blocking: |
Description
If the element's surrounding document flow changes it's position during a drag, the whole drag operation gets messed up. The algorithm is wrong for not considering this to happen (don't argue to me that it's right for behaving like this). A dragged element should always remain under the cursor at the same position during the entire drag operation, ''regardless'' of what document changes might effect it's CSS relative positioning.
So, a new algorithm is needed. During drag movement, the element's origin top and origin left should be used to determine how much relative positioning the element needs in order to appear as though it's being dragged by the cursor. Duh.
I hope I'm helping. Maybe I can figure out a detailed algorithm for draggable elements.
Attachments (0)
Change History (6)
Changed May 01, 2012 08:48PM UTC by comment:1
summary: | Drag gets fucked up when document flow changes → Drag gets messed up when document flow changes |
---|
Changed October 11, 2012 02:49PM UTC by comment:2
milestone: | 1.9.0 → 2.0.0 |
---|
Changed October 27, 2012 08:31PM UTC by comment:3
status: | new → open |
---|
Thanks for contributing, although you didn't need to be so rude about it, DUH! This is confirmed on latest: http://jsfiddle.net/6cfVD/
Changed October 28, 2012 06:09AM UTC by comment:4
Okay, thank you. I didn't mean to be rude... Sooooooooooooorrrryyyyy!
Changed October 28, 2012 11:38AM UTC by comment:5
keywords: | → dbr |
---|
Changed October 28, 2012 09:04PM UTC by comment:6
summary: | Drag gets messed up when document flow changes → Draggable: Dragged element mouse offset is incorrect when document flow changes |
---|