Skip to content

Commit

Permalink
fix: fix scrollable infinite loop #1015
Browse files Browse the repository at this point in the history
  • Loading branch information
daybrush committed Sep 19, 2023
1 parent 5d81006 commit b725981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-moveable/src/ables/Scrollable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default {
}
triggerEvent(moveable, eventName, params);
}).on("move", ({ offsetX, offsetY, inputEvent }) => {
moveable[gestoName].scrollBy(offsetX, offsetY, inputEvent.inputEvent, true);
moveable[gestoName].scrollBy(offsetX, offsetY, inputEvent.inputEvent, false);
}).on("scrollDrag", ({ next }) => {
next(moveable[gestoName].getCurrentEvent());
});
Expand Down

0 comments on commit b725981

Please sign in to comment.