Sortable: scrollSensitivity not working?
Due to a fixed header, I increased the default scrollSensitivity
from 30
to 100
(fixed header is only (50px high). However, the settings does not seem to have any effect. I still have to reach the default 30 pixels to either edge, in order for the auto-scrolling to start. Are there any known problems with this setting?
It works fine with version 1.7.0
, but not in version 1.8.1
.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (6 by maintainers)
@trullock Yes, I just improved it
@fritzmg There is no issue I am aware of. If you are using native drag and drop (no
forceFallback: true
is set and not on mobile) then the Sortable’s autoscroll function is not invoked, because Chrome and Firefox already implement this feature. To get around it for now you can useforceFallback: true
, however you will lose the ability to use the native DnD API.As well, there is always the option of making the navbar a div above your main page container, rather than fixed inside it.
I just spent hours debugging this. Can we please improve the documentation for AutoScroll to make it clearer what native vs fallback scrolling are and when they apply, and how the scrollSensitivity and speed dont apply in native mode?