mirror of
https://github.com/ryan-haskell/elm-spa.git
synced 2024-09-11 12:35:44 +03:00
give more time to scroll on prod
This commit is contained in:
parent
f183a1fa21
commit
464d5d215b
@ -14,7 +14,7 @@ const scrollToHash = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
app.ports.onUrlChange.subscribe(_ => setTimeout(scrollToHash, 400))
|
app.ports.onUrlChange.subscribe(_ => setTimeout(scrollToHash, 400))
|
||||||
setTimeout(scrollToHash, 200)
|
setTimeout(scrollToHash, 400)
|
||||||
|
|
||||||
// Quick search shortcut (/)
|
// Quick search shortcut (/)
|
||||||
window.addEventListener('keypress', (e) => {
|
window.addEventListener('keypress', (e) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user