File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -506,20 +506,15 @@ class AnnotationEditorLayer {
506
506
return ;
507
507
}
508
508
const rotationOfThisPage = this . viewport . rotation ;
509
- const inkEditor = this . div . querySelector ( ".inkEditor.editing" ) ;
510
- if ( ! inkEditor ) {
511
- return ;
512
- }
513
- const currentInkRotation = Number (
514
- inkEditor . getAttribute ( "data-editor-rotation" )
515
- ) ;
509
+ const currentRotation =
510
+ 360 - Number ( this . div . getAttribute ( "data-main-rotation" ) ) ;
516
511
517
512
const pageRotation =
518
513
( 360 + rotationOfThisPage - editor . _uiManager . viewParameters . rotation ) %
519
514
360 ;
520
515
editor . pageRotation = pageRotation ;
521
516
editor . rotation = rotationOfThisPage ;
522
- editor . div . setAttribute ( "data-editor-rotation" , currentInkRotation ) ;
517
+ editor . div . setAttribute ( "data-editor-rotation" , currentRotation ) ;
523
518
}
524
519
525
520
/**
You can’t perform that action at this time.
0 commit comments