Is there a way to make Click events "bleed through" layers to the ones beneath? Both the layer on top and the layer under it would receive the click event.
What's the use case for this?
Remove pointers events on embedded layer but tie events to both?
Emit a click event for the layer below?
I've never found a way to do this except detecting if a point was inside it's view. Supposedly there is this method: https://developer.mozilla.org/en-US/docs/Web/API/Document/elementFromPoint
Have you tried forcing the element to inline CSS with pointer-events:none; ?
I could see capturing the click event on a background layer and then checking if the coordinates of that click was inside the bounds of one or both layers
I'm still confused why anyone would ever need to do this...
I have two layers I want to drag at the same time
George come by my desk tomorrow?
each layers call a function that keeps the movement in sync, and they are called from one of the layers and keep the other layer in sync.
Yeah Johannes Eckert - I've gone that route too.
Basically I've captured from a superlayer that each element is a part of and then detected if the point is inside its bounds. Or you press and drag and do an on:"change:x" or similar to fire events or call other methods.
Johannes Eckert What Jordan Robert Dobson just said :). Using the event "change:[whatever]" is a great option I use often.