mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix iOS 12 crashing in scroller
This commit is contained in:
parent
b6745dcfbb
commit
7607c8dbd3
3 changed files with 49 additions and 15 deletions
|
@ -175,16 +175,7 @@ const scrollerFactory = function (frame, options) {
|
|||
requiresReflow = false;
|
||||
|
||||
// Reset global variables
|
||||
const frameStyle = window.getComputedStyle(frame);
|
||||
if (o.horizontal) {
|
||||
frameSize = frame.clientWidth;
|
||||
frameSize -= parseFloat(frameStyle.paddingLeft) + parseFloat(frameStyle.paddingRight);
|
||||
} else {
|
||||
frameSize = frame.clientHeight;
|
||||
frameSize -= parseFloat(frameStyle.paddingTop) + parseFloat(frameStyle.paddingBottom);
|
||||
}
|
||||
frameSize = Math.round(frameSize);
|
||||
|
||||
frameSize = slideeElement[o.horizontal ? 'clientWidth' : 'clientHeight'];
|
||||
slideeSize = o.scrollWidth || Math.max(slideeElement[o.horizontal ? 'offsetWidth' : 'offsetHeight'], slideeElement[o.horizontal ? 'scrollWidth' : 'scrollHeight']);
|
||||
|
||||
// Set position limits & relatives
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue