anseki / plain-draggable

The simple and high performance library to allow HTML/SVG element to be dragged.
https://anseki.github.io/plain-draggable/
MIT License
774 stars 99 forks source link

Plain-draggable placed below leader-line #147

Closed ninjaclown123 closed 5 months ago

ninjaclown123 commented 5 months ago

I am using plain-draggable with leader-line for an application I am developing. The plain draggable instances always appear below the leader-line instances. Is it possible to make it so that plain-draggable instances are placed above the leader-lines?

image

anseki commented 5 months ago

Hi @ninjaclown123, thank you for the comment. This may help you: https://github.com/anseki/leader-line/issues/356

ninjaclown123 commented 5 months ago

Thanks for the response. It was actually a mistake on my side. For some reason, when the div where I was placing all the plain-draggable instances were inside another div, it would place all the draggables below the leader-line z-indices. Fixed it by not nesting the div where I'm storing the plain-draggable instances.

anseki commented 5 months ago

😄