Focus a focusable element instead of trying to focus the image

This commit is contained in:
Zixaphir 2013-08-24 22:23:07 -07:00
parent 75e54949ae
commit c6b3f0b9b6
3 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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) {

View File

@ -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()