aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2020-09-10 17:19:03 +0300
committerTulir Asokan <tulir@maunium.net>2020-09-10 17:19:03 +0300
commit32058373ff6398fe8b53bc4f4acb577b4fa159e1 (patch)
treec64e139a1f01f120bed9cd444d3c5a436e84c492
parente28540aba58bd16dbcaa29e962de46929a354457 (diff)
Disable smooth navbar scrolling as it breaks on some platforms
-rw-r--r--web/src/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/src/index.js b/web/src/index.js
index 585d854..cd165dd 100644
--- a/web/src/index.js
+++ b/web/src/index.js
@@ -153,9 +153,9 @@ class App extends Component {
}
}
if (minXElem !== null) {
- minXElem.scrollIntoView({ inline: "start", behavior: "smooth" })
+ minXElem.scrollIntoView({ inline: "start" })
} else if (maxXElem !== null) {
- maxXElem.scrollIntoView({ inline: "end", behavior: "instant" })
+ maxXElem.scrollIntoView({ inline: "end" })
}
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage