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

Function applyDiffScrolls

scripts/reading.js:2310–2324  ·  view source on GitHub ↗
(diff = 0)

Source from the content-addressed store, hash-verified

2308}
2309
2310function applyDiffScrolls(diff = 0)
2311{
2312 if(gamepadScroll)
2313 gamepadScroll.scrollTop = gamepadScroll.scrollTop + diff;
2314
2315 if(readingDragScroll)
2316 {
2317 readingDragScroll.content.stop(true);
2318 readingDragScroll.scrollTop = readingDragScroll.scrollTop + diff;
2319 }
2320 else
2321 {
2322 template.contentRight().children().stop(true);
2323 }
2324}
2325
2326function zoomScrollHeight()
2327{

Callers 1

applyScaleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected