fix trailling whitespace

This commit is contained in:
caribaud 2023-06-04 21:38:56 +02:00
parent f87f6c75f5
commit c6f88e8d85
1 changed files with 13 additions and 13 deletions

View File

@ -231,7 +231,7 @@ function previousPagesWidth(pageNumber)
function initReader()
{
VERSION_DISPLAY.innerText = VERSION_DISPLAY.innerText.replace("Unknown version", MELPOMENE_VERSION);
loadZoomsFromImgTagsIfRequired();
moveReaderDisplayToZoom(0);
@ -246,7 +246,7 @@ function initReader()
entry.target.style.opacity = 1;
entry.target.style.visibility = "visible";
}
else
{
entry.target.style.opacity = 0;
@ -307,7 +307,7 @@ function moveReaderDisplayToArea(pageNumber, oWidth, oHeight, oPosx, oPosy)
width = width + posx;
posx = 0;
}
if ((posx + width) > pageOriginalWidth(pageNumber))
{
width = pageOriginalWidth(pageNumber) - posx;
@ -319,7 +319,7 @@ function moveReaderDisplayToArea(pageNumber, oWidth, oHeight, oPosx, oPosy)
height = height + posy;
posy = 0;
}
if ((posy + height) > pageOriginalHeight(pageNumber))
{
height = pageOriginalHeight(pageNumber) - posy;
@ -359,7 +359,7 @@ function moveReaderDisplayToArea(pageNumber, oWidth, oHeight, oPosx, oPosy)
updateFocusByWidth(scaledWidth);
}
else
{
// Frame narower than zoom => scale so left/right match, offset on y
@ -420,15 +420,15 @@ function toggleViewMode()
{
moveReaderDisplayToZoom(CURRENT_ZOOM);
}
else
{
moveReaderDisplayToZoom(getFirstZoomOfPage(CURRENT_PAGE));
}
IS_PAGE_MODE = false;
}
else
{
moveReaderDisplayToPage(CURRENT_PAGE);
@ -454,7 +454,7 @@ function moveReader(toNext)
CURRENT_ZOOM = null;
}
}
else
{
if (toNext && CURRENT_ZOOM < PAGES_ZOOMS.length - 1)
@ -494,7 +494,7 @@ function handleKeyPress(key)
{
READER_FRAME.requestFullscreen();
}
else
{
document.exitFullscreen();
@ -507,12 +507,12 @@ function handleKeyPress(key)
{
PROGRESS_BAR_CONTAINER.hidden = false;
}
else
{
PROGRESS_BAR_CONTAINER.hidden = true;
}
refreshReaderDisplay();
}
@ -541,7 +541,7 @@ function handleMouseWhell(event)
{
return;
}
else
{
MOUSEWHELL_WAIT = true;