MCPcopy Index your code
hub / github.com/ollm/OpenComic / zoomMove

Function zoomMove

scripts/reading.js:2423–2429  ·  view source on GitHub ↗
(x = 0, y = 0, animation = false)

Source from the content-addressed store, hash-verified

2421}
2422
2423function zoomMove(x = 0, y = 0, animation = false)
2424{
2425 if(!haveZoom) return;
2426
2427 dragZoom(x, y, animation);
2428 dragZoomEnd(true);
2429}
2430
2431// Reset zoom or show in original size if is current in 1 scale
2432function resetZoom(animation = true, index = false, apply = true, center = true, delayed = false)

Callers 5

goToIndexFunction · 0.85
zoomUpFunction · 0.85
zoomDownFunction · 0.85
zoomLeftFunction · 0.85
zoomRightFunction · 0.85

Calls 2

dragZoomFunction · 0.85
dragZoomEndFunction · 0.85

Tested by

no test coverage detected