1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update components

This commit is contained in:
Luke Pulverenti 2016-08-04 19:48:54 -04:00
parent 8dbdfe3be1
commit 058d86a988
29 changed files with 239 additions and 314 deletions

View file

@ -161,10 +161,6 @@ define(['browser', 'layoutManager', 'scrollStyles'], function (browser, layoutMa
// no scrolling supported
options.enableNativeScroll = false;
}
else if (browser.edge && !browser.xboxOne) {
// no scrolling supported
options.enableNativeScroll = false;
}
else if (isSmoothScrollSupported && browser.firefox) {
// native smooth scroll
options.enableNativeScroll = true;
@ -174,8 +170,15 @@ define(['browser', 'layoutManager', 'scrollStyles'], function (browser, layoutMa
// transform is the only way to guarantee animation
options.enableNativeScroll = false;
}
else if (layoutManager.mobile ||
layoutManager.desktop ||
else if (layoutManager.mobile) {
options.enableNativeScroll = true;
}
else if (browser.edge && !browser.xboxOne) {
// no scrolling supported
options.enableNativeScroll = false;
}
else if (layoutManager.desktop ||
!browser.animate) {
options.enableNativeScroll = true;