Skip to main content

Search and Top Navigation

#9974 open bug ()

Opened April 10, 2014 04:41PM UTC

Last modified April 11, 2014 12:43AM UTC

Draggable: scrolling while dragging causes grid misalignment

Reported by: jribble Owned by:
Priority: minor Milestone: none
Component: ui.draggable Version: git (not yet released)
Keywords: Cc:
Blocked by: Blocking:
Description

See the issue in this jsfiddle: http://jsfiddle.net/jribble/MLcCc/2/

If the div scrolls while dragging the box you will see that the box stops aligning to the grid lines.

Attachments (0)
Change History (4)

Changed April 10, 2014 06:33PM UTC by tj.vantoll comment:1

status: newopen

Thanks for putting this in its own ticket jribble.

Changed April 10, 2014 10:13PM UTC by jribble comment:2

I created a unit test and a proposed fix in pull request https://github.com/jquery/jquery-ui/pull/1226

Changed April 10, 2014 10:49PM UTC by jribble comment:3

I just noticed another related problem - if you start dragging when the scroll position is misaligned from the grid the element becomes misaligned from the grid.

Changed April 11, 2014 12:43AM UTC by jribble comment:4

Okay, I've updated my pull request with a test and fix for this problem as well. It's a more significant change, but all of the tests do pass and my fiddle works using these changes.