mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2026-10-26 16:45:18 +00:00
Don't math twice
This commit is contained in:
1 parent
f2e1d03ae9
commit
e7d6bc2889
1 file changed
+4
-4
@@ -229,15 +229,15 @@ var scrollerFactory = function (frame, options) {
|
||||
}
|
||||
} else if (!immediate && container.scrollTo) {
|
||||
if (o.horizontal) {
|
||||
container.scrollTo(Math.Math.round(pos), 0);
|
||||
container.scrollTo(Math.round(pos), 0);
|
||||
} else {
|
||||
container.scrollTo(0, Math.Math.round(pos));
|
||||
container.scrollTo(0, Math.round(pos));
|
||||
}
|
||||
} else {
|
||||
if (o.horizontal) {
|
||||
container.scrollLeft = Math.Math.round(pos);
|
||||
container.scrollLeft = Math.round(pos);
|
||||
} else {
|
||||
container.scrollTop = Math.Math.round(pos);
|
||||
container.scrollTop = Math.round(pos);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user