Hi all! I'm trying to figure out why ignoreEvents isn't working for me. Any pointers? Even this doesn't appear to work as expected:
layer.ignoreEvents = true
layer.onClick -> print "sup"
Try ignoreEvents false
It will ignore events if set to true
Yeah, that's what I'm trying to achieve: Preventing people being able to click on a button before it's even visible (or after someone has clicked it on it once).
I added the ignoreEvents to make sure clicking this layer doesn't do anything: http://share.framerjs.com/x6tw4pf8nfkt/
So it prints when it should not?
Oh! Do the ignore after wards. If you add an event it assumes you no longer want to ignore.
Oh wow. Totally missed that part in the documentation... Thanks!!
I can see how this might confuse people.