Focus a focusable element instead of trying to focus the image
This commit is contained in:
parent
75e54949ae
commit
c6b3f0b9b6
@ -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) {
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user