I have 2 objects and that are overlaying each other. I would like to disable the event listening for the upper object, so I can listen to events for the lower object. In kinetic.js you can set that:
http://kineticjs.com/docs/Kinetic.Shape.html#setListening
Is there any workaround in fabric.js?
You can use
selectable: false
for this. Since version 1.2.11, "selectable" not only controls object selectability but also makes events propagate through when set tofalse
.See this example.