jakiestfu / Snap.js

A Library for creating beautiful mobile shelfs in Javascript (Facebook and Path style side menus)
http://jakiestfu.github.io/Snap.js/
5.99k stars 666 forks source link

Jumpping bug in modal when button have position: relative #281

Open jchatel opened 7 years ago

jchatel commented 7 years ago

Hi there, I noticed a super strange behaviour when my modal will jump up and down if I have my mouse over some buttons.

Check out the quick video I made of it: https://youtu.be/dY8Em-O2R54

It uses TextAngular in my modal, grey buttons are not using position:relative so they don't trigger this behaviour for some reason.

If the modal is not scrolled, or if button have not position: relative, then no jumping happens.

If I disable snap.js, then the behaviour stops.

Any idea what the problem could be? Seems like a rendering bug as nothing seems to change in the DOM nor any event is fired.

I originally posted this on TextAngular as I think this was something done by their code: https://github.com/fraywing/textAngular/issues/1392