mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-26 09:44:32 +02:00
table sliders + FF scroll fix
This commit is contained in:
8
docs/js/site/fix-scroll.js
Normal file
8
docs/js/site/fix-scroll.js
Normal file
@@ -0,0 +1,8 @@
|
||||
// Firefox seems to mess up on slider input immediately after navigating.
|
||||
// Even weirder, forcing a scroll once the page is done loading fixes it...
|
||||
if (navigator.userAgent.includes(`Firefox/`)) {
|
||||
window.onload = function () {
|
||||
window.scrollBy(0, 1);
|
||||
setTimeout(() => window.scrollBy(0, -1), 1);
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user