Skip to content

Commit 267f7fc

Browse files
authored
Re slim issue 39: fix shift on zoom (#73)
1 parent 6c2dfd4 commit 267f7fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/channel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ class _Channel {
610610
* Compute the resolution at each pyramid level, since the zoom
611611
* factor may not be the same between adjacent pyramid levels.
612612
*/
613-
const zoomFactor = baseTotalPixelMatrixColumns / totalPixelMatrixColumns
613+
const zoomFactor = Math.floor(baseTotalPixelMatrixColumns / totalPixelMatrixColumns)
614614
imageResolutions.push(zoomFactor)
615615
/*
616616
* TODO: One may have to adjust the offset slightly due to the

0 commit comments

Comments
 (0)