Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#9809 closed bug (notabug)

UI draggable with body.overflow-y:scroll in Chrome

Reported by: Clarkk Owned by: Clarkk
Priority: minor Milestone: none
Component: ui.draggable Version: 1.10.4
Keywords: Cc:
Blocked by: Blocking:


UI draggable doesn't work with the following stylesheet in Chrome

body { overflow-y:scroll }


The first 1-3 works fine, but as you go down the draggable element jumps arround and impossible to handle

If you uncheck the stylesheet it work perfect

Change History (5)

comment:1 Changed 9 years ago by tj.vantoll

Owner: set to Clarkk
Status: newpending

Hi Clarkk,

Thanks for taking the time to contribute to jQuery UI. Please reduce your test case to show only the problem and use the latest version of jQuery UI. You can use this as a starting point:

comment:2 Changed 9 years ago by Clarkk

Status: pendingnew

Here is a minified version in jsfiddle

The first 3 works fine but after that the draggable element is completely impossible to handle.. And when you drag the element the body scrolls down

comment:3 Changed 9 years ago by tj.vantoll

Resolution: notabug
Status: newclosed

You're restricting the height of the <body>. Use min-height:

comment:4 Changed 9 years ago by Clarkk

Have now copied the exact same code from jsfiddle out on a webpage, and it it NOT working.. :( So this must be a bug

As soon as scrollTop is not 0 the draggable is impossible to handle

Last edited 9 years ago by Clarkk (previous) (diff)

comment:5 Changed 9 years ago by tj.vantoll

You're using jQuery 1.9.2. Try the same example with these files:

<link href="" rel="stylesheet">
<script src=""></script>
<script src=""></script>
Note: See TracTickets for help on using tickets.