Fix: fix pdf editor hover rotate counterclockwise button (#10848)

This commit is contained in:
shamoon
2025-09-13 14:19:50 -07:00
committed by GitHub
parent 1709aee903
commit d230514dd3
2 changed files with 4 additions and 3 deletions

View File

@@ -67,8 +67,9 @@ export class PDFEditorComponent extends ConfirmDialogComponent {
this.pages[i].selected = !this.pages[i].selected
}
rotate(i: number) {
this.pages[i].rotate = (this.pages[i].rotate + 90) % 360
rotate(i: number, counterclockwise: boolean = false) {
this.pages[i].rotate =
(this.pages[i].rotate + (counterclockwise ? -90 : 90) + 360) % 360
}
rotateSelected(dir: number) {