mirror of
https://github.com/Shopify/draggable.git
synced 2026-02-01 16:46:56 +00:00
AutoScroll now finds next best scrollable parent as one drags
This commit is contained in:
parent
563bb7b6ab
commit
a389ee7cc0
@ -129,6 +129,10 @@ export default class AutoScroll {
|
||||
* @private
|
||||
*/
|
||||
[onDragMove](dragEvent) {
|
||||
this.findScrollableElementFrame = requestAnimationFrame(() => {
|
||||
this.scrollableElement = closestScrollableElement(dragEvent.sensorEvent.target);
|
||||
});
|
||||
|
||||
if (!this.scrollableElement) {
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user