Skip to content

Commit

Permalink
New version for FF scrolling issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nsharma123 committed Jan 18, 2024
1 parent b6f0e27 commit 0be470e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@internetarchive/ia-item-navigator",
"version": "2.1.0",
"version": "2.1.1",
"description": "Internet Archive's Item Navigator, visually explore an item's contents.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/menus/viewable-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export class IauxViewableFiles extends LitElement {
activeFile?.scrollIntoViewIfNeeded(true);
} else {
// `scrollIntoView` always auto-scroll to center of visible area
activeFile?.scrollIntoView({ behavior: 'auto', block: 'center' });
activeFile?.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'nearest' })
}
}, 350);
}
Expand Down

0 comments on commit 0be470e

Please sign in to comment.