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

Fix style

This commit is contained in:
Dmitry Lyzo 2019-11-27 14:13:16 +03:00
parent 1d045d172b
commit 3752db775b
2 changed files with 10 additions and 6 deletions

View file

@ -18,7 +18,9 @@ if (HTMLElement.prototype.nativeFocus === undefined) {
}); });
focusElem.focus(opts); focusElem.focus(opts);
} catch(e) {} } catch (e) {
console.log("error checking preventScroll support");
}
if (!supportsPreventScrollOption) { if (!supportsPreventScrollOption) {
HTMLElement.prototype.nativeFocus = HTMLElement.prototype.focus; HTMLElement.prototype.nativeFocus = HTMLElement.prototype.focus;

View file

@ -42,7 +42,9 @@ define(["dom", "browser", "layoutManager"], function (dom, browser, layoutManage
}); });
elem.scrollTo(opts); elem.scrollTo(opts);
} catch(e) {} } catch (e) {
console.log("error checking ScrollToOptions support");
}
/** /**
* Returns value clamped by range [min, max]. * Returns value clamped by range [min, max].
@ -75,7 +77,7 @@ define(["dom", "browser", "layoutManager"], function (dom, browser, layoutManage
return delta2; return delta2;
} }
return 0; return 0;
}; }
/** /**
* Ease value. * Ease value.
@ -344,7 +346,7 @@ define(["dom", "browser", "layoutManager"], function (dom, browser, layoutManage
builtinScroll(xScroller, x, yScroller, y, false); builtinScroll(xScroller, x, yScroller, y, false);
scrollTimer = requestAnimationFrame(scrollAnim); scrollTimer = requestAnimationFrame(scrollAnim);
}; }
scrollTimer = requestAnimationFrame(scrollAnim); scrollTimer = requestAnimationFrame(scrollAnim);
} }
@ -379,7 +381,7 @@ define(["dom", "browser", "layoutManager"], function (dom, browser, layoutManage
} }
return false; return false;
}; }
/** /**
* Returns true if animated implementation of smooth scroll must be used. * Returns true if animated implementation of smooth scroll must be used.
@ -388,7 +390,7 @@ define(["dom", "browser", "layoutManager"], function (dom, browser, layoutManage
// Add block to force using (or not) of animated implementation // Add block to force using (or not) of animated implementation
return !supportsSmoothScroll; return !supportsSmoothScroll;
}; }
/** /**
* Returns true if scroll manager is enabled. * Returns true if scroll manager is enabled.