Continuing from the previous post where I added a feature to the timeline to expand multiple events at once.
In this one, I looked at doing something similar for moving.
By default, only one event is moved, but when the Control
key is pressed, everything preceeding or following is moved too, depending on the direction of the movement.
Code
https://svelte.dev/repl/2512beecf699484b87ef70c50e625d84?version=3.37.0
Demo
Notes
- Doesn’t work correctly with snapping