anseki / leader-line

Draw a leader line in your web page.
http://anseki.github.io/leader-line/
MIT License
2.99k stars 416 forks source link

Use drag item in combinaison with Flickity handle #94

Closed yepecece closed 4 years ago

yepecece commented 4 years ago

Hi, I am trying to use a drag item with Flickity (https://flickity.metafizzy.co). Do you have an idea as how I could bind the drag of the item with the drag of the slider?

Here is a basic slider with a custom handle and the draggable item. https://jsfiddle.net/1unbwmja/10/

anseki commented 4 years ago

Hi @yepecece, thank you for the comment. Sorry, do you mean that you want to draw a line between a cell of Flickity and something?

yepecece commented 4 years ago

Basically I want the custom handle in Flickity to be the draggable element setup with PlainDraggable. If you see in the JSFiddle the gray square is the custom handle that is used to switch slides in Flickty on drag.

anseki commented 4 years ago

Is this an issue about LeaderLine?

yepecece commented 4 years ago

Sorry, you are right. I will go ahead and ask this in the PlainDraggable git. Thanks.