ui-sortable icon indicating copy to clipboard operation
ui-sortable copied to clipboard

Dragging item to edge doesn't scroll parent

Open mcblum opened this issue 9 years ago • 2 comments

Hello.

Thanks for all of your work on this codebase. I've come across a strange situation where dragging a li doesn't cause the page to scroll up, even when the li gets near the top of the page. I tried adding a helper function but it's really choppy. Here is what I'm passing for options:

galleryCtrl.sortableGalleries = { 'ui-floating': true, 'handle' : '.drag', stop: orderGalleries, disableSelection: true, scrollSpeed: 1, scrollSensitivity: 160, containment: "parent" };

Is there anything that I could have done in the HTML / CSS that would break scrolling? We're using Flexbox.

Thanks again, Matt

mcblum avatar Feb 23 '16 20:02 mcblum

Hi there. I think that this is a jquery-ui related issue and you should have better results if you looked there for answers. Last time I checked, flexbox support was not in good shape in jquery-ui. Be sure that you are using the latest available versions.

Thodoris Greasidis Computer, Networking & Communications Engineer

thgreasi avatar Feb 23 '16 20:02 thgreasi

On the other hand, forking one of the codepen examples to demonstrate your case, could give us the chance to experiment with the issue :)

thgreasi avatar Feb 23 '16 20:02 thgreasi