You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe I'm missing something, but I can't find a way to only drag the object on top if there are multiple close to or overlapping each other. When two elements are stacked on top of eachother they both get selected when dragging. JSfiddle here: https://jsfiddle.net/L4q65vu2/
Thanks :)
The text was updated successfully, but these errors were encountered:
Hey, there is not built-in functionality for this, since the handler is attached to the container which contains both elements. There is no checking in which layer the element is located in. It only checks the position. But you can implement this "z-index check" by yourself. Here's an example, which I've created quickly. Please do not use this in production. I only want to give you an idea on how this could be done:
Maybe I'm missing something, but I can't find a way to only drag the object on top if there are multiple close to or overlapping each other. When two elements are stacked on top of eachother they both get selected when dragging. JSfiddle here: https://jsfiddle.net/L4q65vu2/
Thanks :)
The text was updated successfully, but these errors were encountered: