Closed IvailoStoyanov closed 5 years ago
Looks weird in Safari. @IvailoStoyanov can you check this out please.
^ this only happens in this branch, that's why I'm posting it here.
The issue seems to be on Develop as well I will not fix it through this branch however
why did you implement this with element.scrollIntoView? according to MDN scrollIntoViewOptions like "behaviour: smooth" are only supported by Firefox 36+ and no other browsers (!).
the other approach - we where talking about this morning - would be CSS scroll behaviour: html { scroll-behavior: smooth; }
This would be supported by Firefox 36+, Chrome (61+) and Opera (48+)
I just might have found an old page on MDN. Both solutions seem to have the same (above) browser support. Also Ivaylo just told that the css solution would have messed with the scroll animation, so is not applicable here.
Seems to work in my chromium based Brave browser, firefox and chrome itself. Doesn't work in Safari.