git ssb

16+

Dominic / patchbay



Commit b18cd2fd76ea90211edf125a9db775b264cd0b66

revert scrollIntoView ... change

mix irving committed on 12/19/2017, 6:00:11 AM
Parent: 3ca54bcd8a9335fba6f95f70e937ec310c5b7ad9

Files changed

app/sync/catch-keyboard-shortcut.jschanged
app/sync/catch-keyboard-shortcut.jsView
@@ -118,14 +118,16 @@
118118 function locateKey () {
119119 const msg = tabs.currentPage().querySelector(`[data-id='${id}']`)
120120 if (msg === null) return setTimeout(locateKey, 100)
121121
122- msg.scrollIntoView({
123- behavior: 'smooth',
124- block: 'start',
125- inline: 'start',
126- })
127- // ;(msg.scrollIntoViewIfNeeded || msg.scrollIntoView).call(msg)
122 + if (msg.scrollIntoViewIfNeeded)
123 + msg.scrollIntoViewIfNeeded(false)
124 + else
125 + msg.scrollIntoView({
126 + behavior: 'smooth',
127 + block: 'start',
128 + inline: 'start',
129 + })
128130 msg.focus()
129131 }
130132 }
131133

Built with git-ssb-web