Trying to figure out how to respond to an onClick event that doesn't automatically trigger an OnMouseLeave event for the underlying layer.
In regular JS this is achieved with event.preventDefault but that does not appear to work in this case. Any help is appreciated.
Why not put the "view video" layer as a child of the underlying one?Set the underlying layer as a ›superLayer‹ or ›parent‹ on "view video" :)
Radek, thanks for your feedback. I have added the button as a child to the overall Thumbnail. The result is somewhat better, but moving the mouse over the button still triggers an onMouseOut event.
Does preventDefault just not work in Framer?
Interesting. Waiting for a fix...
There's a "ignoreEvents" boolean! Maybe this would help!
Ok, so apparently you can use "mouseenter" and "mouseleave" as events that don't swallow the underlying event. Combination of making the button a child of the thumbnail and using this event did the trick.
Harsha Kausthubh Future reference for our cards.