Skip to content

Commit

Permalink
Jump mods
Browse files Browse the repository at this point in the history
  • Loading branch information
madprops committed Nov 29, 2024
1 parent 9d452b0 commit b0facd9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions js/main/jump.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,11 @@ App.jump_tabs = async (args = {}) => {
}
}

if (first && (first !== args.item)) {
jump(first)
}

if (first && (first === args.item)) {
if (first.element && !App.item_is_visible(first)) {
if (first && first.element) {
if (first !== args.item) {
jump(first)
}
else if (!App.item_is_visible(first)) {
App.select_item({item: first, scroll: `center_smooth`})
}
}
Expand Down

0 comments on commit b0facd9

Please sign in to comment.