MCPcopy
hub / github.com/ollm/OpenComic / resized

Function resized

scripts/reading.js:2933–2962  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2931}
2932
2933async function resized()
2934{
2935 if(onLoadPromise) await onLoadPromise.promise;
2936
2937 originalRect = false;
2938 originalRectReadingBody = false;
2939 originalRect2 = false;
2940 originalRectReadingBody2 = false;
2941 contentLeftRect = false;
2942 contentRightRect = false;
2943 barHeaderRect = false;
2944
2945 if((onReading || _onReading) && isLoaded)
2946 {
2947 if(!readingIsEbook)
2948 {
2949 disposeImages();
2950 zoomScrollHeight();
2951 calculateView();
2952 stayInLine(true);
2953 }
2954
2955 render.resized(doublePage.active());
2956 fastUpdateEbookPages(false, true);
2957 generateEbookPagesDelayed();
2958 hideMouseInFullscreen();
2959 }
2960
2961 // getPreviusContentSize();
2962}
2963
2964var hiddenContentLeft = false, hiddenBarHeader = false, hideContentDisableTransitionsST = false, hideContentST = false, hideContentRunningST = false, shownContentLeft = false, shownBarHeader = false;
2965

Callers 1

hideContentFunction · 0.70

Calls 7

disposeImagesFunction · 0.85
zoomScrollHeightFunction · 0.85
calculateViewFunction · 0.85
stayInLineFunction · 0.85
fastUpdateEbookPagesFunction · 0.85
hideMouseInFullscreenFunction · 0.85

Tested by

no test coverage detected