mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add scroll manager with base functionality
This commit is contained in:
parent
3419230e89
commit
c0783dbe8e
4 changed files with 382 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
define(['dom'], function (dom) {
|
||||
define(['dom', 'scrollManager'], function (dom, scrollManager) {
|
||||
'use strict';
|
||||
|
||||
var scopes = [];
|
||||
|
@ -40,7 +40,7 @@ define(['dom'], function (dom) {
|
|||
|
||||
try {
|
||||
element.focus({
|
||||
preventScroll: false
|
||||
preventScroll: scrollManager.isEnabled()
|
||||
});
|
||||
} catch (err) {
|
||||
console.log('Error in focusManager.autoFocus: ' + err);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue