mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fixed all reported issues
This commit is contained in:
parent
aed7feda2b
commit
892f5b73cf
6 changed files with 28 additions and 26 deletions
|
@ -40,13 +40,13 @@ const EmbyScrollButtonsPrototype = Object.create(HTMLDivElement.prototype);
|
|||
}
|
||||
|
||||
function updateScrollButtons(scrollButtons, scrollSize, scrollPos, scrollWidth) {
|
||||
// TODO: Check if hack is really needed
|
||||
// hack alert add twenty for rounding errors
|
||||
let localeAwarePos = scrollPos;
|
||||
if (globalize.getElementIsRTL(scrollButtons)) {
|
||||
if (globalize.getIsElementRTL(scrollButtons)) {
|
||||
localeAwarePos *= -1;
|
||||
}
|
||||
|
||||
// TODO: Check if hack is really needed
|
||||
// hack alert add twenty for rounding errors
|
||||
if (scrollWidth <= scrollSize + 20) {
|
||||
scrollButtons.scrollButtonsLeft.classList.add('hide');
|
||||
scrollButtons.scrollButtonsRight.classList.add('hide');
|
||||
|
|
|
@ -32,7 +32,7 @@ import globalize from '../../scripts/globalize';
|
|||
const rect = range.sliderBubbleTrack.getBoundingClientRect();
|
||||
|
||||
let fraction = (clientX - rect.left) / rect.width;
|
||||
if (globalize.getElementIsRTL(range))
|
||||
if (globalize.getIsElementRTL(range))
|
||||
fraction = (rect.right - clientX) / rect.width;
|
||||
|
||||
// Snap to step
|
||||
|
@ -121,7 +121,7 @@ import globalize from '../../scripts/globalize';
|
|||
const bubbleRect = bubble.getBoundingClientRect();
|
||||
|
||||
let bubblePos = bubbleTrackRect.width * value / 100;
|
||||
if (globalize.getElementIsRTL(range)) {
|
||||
if (globalize.getIsElementRTL(range)) {
|
||||
bubblePos = bubbleTrackRect.width - bubblePos;
|
||||
}
|
||||
bubblePos = Math.min(Math.max(bubblePos, bubbleRect.width / 2), bubbleTrackRect.width - bubbleRect.width / 2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue