fix(rotation): support cycling rotateViewportCCW (#4533)

This commit is contained in:
Bez authored and GitHub committed 2025-01-20 09:13:43 -05:00
1 parent 953f36ab4c
commit bf587070cc
1 file changed
+1 -1
+1 -1
View File
@@ -569,7 +569,7 @@ function commandsModule({
} else if (viewport.getRotation !== undefined) {
const presentation = viewport.getViewPresentation();
const { rotation: currentRotation } = presentation;
const newRotation = (currentRotation + rotation) % 360;
const newRotation = (currentRotation + rotation + 360) % 360;
viewport.setViewPresentation({ rotation: newRotation });
viewport.render();
}