daybrush / moveable

Moveable! Draggable! Resizable! Scalable! Rotatable! Warpable! Pinchable! Groupable! Snappable!
https://daybrush.com/moveable/
MIT License
10.11k stars 617 forks source link

scrolling of the elements while dragging #841

Open luislozad opened 1 year ago

luislozad commented 1 year ago

Environments

Description

hello daybrush, would you be so kind as to help me with this question.

In the gif below I show how I move the elements and scroll while holding the right mouse button, my question is if it is possible to update the elements to the cursor position while scrolling.

ezgif com-gif-maker

daybrush commented 1 year ago

@luislozad

moveable's new version is released.

set checkScrollEvent to true.

Thank you :)

scrollOptions={{
                    container: ".scrollArea",
                    threshold: 30,
                    checkScrollEvent: true,
                    throttleTime: 0,
}}

https://daybrush.com/moveable/storybook2/?path=/story/support-scroll--use-scrollable&args=checkScrollEvent:true

luislozad commented 1 year ago

thank you for this great support 🤗

d2461379109 commented 1 year ago

How to use it with vue-infinite-viewer?

d2461379109 commented 1 year ago

image

Cannot scroll elements while dragging

@daybrush

Moveable Component version: 0.68