almende / vis

⚠️ This project is not maintained anymore! Please go to https://github.com/visjs
7.85k stars 1.48k forks source link

vis:timeline copy selected item with same duration by holding Ctrlkey and drag item #3812

Open Kaliph opened 6 years ago

Kaliph commented 6 years ago

Is there a way to copy a selected item by holding Ctrlkey and drag the item, so that the duration of the selected item gets copied and the user can´t select a new endtime when dragging the item over longer range. I want the copied item with the same duration as the original item to be under my mousecursor when selecting an item, pressing Ctrlkey and drag the item. When releasing the left mouse button I want the item to be added to the group I am over and with the starttime where I have dropped the item.

Thankyou

Kaliph commented 6 years ago

I am using the options selectable and editable true. But I want to deactivate this...

--> Create a new range item by dragging on an empty space with the ctrl key down.

Instead of this I would like to add my own logic for copy an item.

Kaliph commented 6 years ago

I think I need a posibility to get a item under my mousepointer to drop it to a different place...