DmitryBaranovskiy / raphael

JavaScript Vector Library
https://dmitrybaranovskiy.github.io/raphael/
MIT License
11.27k stars 1.67k forks source link

Element.toFront prevents hover events on Firefox 83 #1127

Open Kasoo opened 3 years ago

Kasoo commented 3 years ago

Element.toFront is implemented as an appendChild call to reposition the element within the DOM.

Similar to previous issues with IE (#225, #527) it appears that on Firefox 83 (and older) this causes the element to be temporarily removed from the DOM and thus prevents it receiving events.

This is notable when calling toFront from scroll event listeners as this will move the elements (and thus require a mouseout), and prevent that event from reaching the element.

Kasoo commented 3 years ago

Attached is a minimal example that replicates the problem on Firefox but works okay on Chrome.

test.html.txt