1
0
Fork 0
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:
Dmitry Lyzo 2019-10-19 23:36:59 +03:00
parent 3419230e89
commit c0783dbe8e
4 changed files with 382 additions and 2 deletions

View file

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