diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 132d12288..9441d0a52 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -6688,7 +6688,7 @@ nodes.count.textContent = +this.dataset.id + 1; nodes.current = img; nodes.frame.scrollTop = 0; - nodes.current.focus(); + nodes.next.focus(); rect = this.getBoundingClientRect(); top = rect.top; if (top > 0) { diff --git a/builds/crx/script.js b/builds/crx/script.js index 74f38b3f0..0a40149cc 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -6673,7 +6673,7 @@ nodes.count.textContent = +this.dataset.id + 1; nodes.current = img; nodes.frame.scrollTop = 0; - nodes.current.focus(); + nodes.next.focus(); rect = this.getBoundingClientRect(); top = rect.top; if (top > 0) { diff --git a/src/Images/Gallery.coffee b/src/Images/Gallery.coffee index 197f0a4b8..113cd8d97 100644 --- a/src/Images/Gallery.coffee +++ b/src/Images/Gallery.coffee @@ -155,7 +155,7 @@ Gallery = nodes.count.textContent = +@dataset.id + 1 nodes.current = img nodes.frame.scrollTop = 0 - nodes.current.focus() + nodes.next.focus() # Scroll rect = @getBoundingClientRect()