is there anyway I can specify if I want the events to be detected on the 'capturing phase' rather than on the 'bubbling phase'?
the idea is to stop events (TouchEnd, etc) from propagating to sublayers just by capturing and stopping the event at the parent layer level.
I know Framer does have event listeners.
layer.addEventListener 'event' , (event, layer) ->
I would think that you would need to have each layer listen for the touch event and set its superLayer to a temp variable then swap back when the TouchEnd triggers.
Hope that is helpful.
It helps but it's kind of annoying. I found where Framer wraps the EventEmitterManager function to Layer._element and it would be as simple as adding a third argument (true) to the this.element.adEventListener. I wish there was a way I could decide if I want to pass that third argument or keep it false by default
what I am looking for it's an easy way of invalidating any user event (touch) on a layer and all it's sublayers like UIView does with enabledUserInteraction
.ignoreEvents might work on subLayers are you dealing with dragging layers at all? What I had done before was when I get a TouchStart or TouchMove on a parent element I call a method that deactivates all children.