visjs / vis-timeline

📅 Create a fully customizable, interactive timelines and 2d-graphs with items and ranges.
https://visjs.github.io/vis-timeline/
Other
1.85k stars 311 forks source link

Dragged Item is Lost When Timeline Resizes Vertically #1827

Open hfi580 opened 1 month ago

hfi580 commented 1 month ago

See JS Bin for implementation.

A dragged timeline item no longer follows the mouse cursor when the timeline's height shrinks due to that drag. A user has to find the dragged item again afterwards.

This only happens when the timeline is short and vertically scrollable. The effect is greater when timeline items are tall, and the dragged item is near the bottom.