Skip to content

Commit

Permalink
Merge pull request #15425 from Snuffleupagus/cursor-failed-fullscreen
Browse files Browse the repository at this point in the history
Don't try to update the cursorTool when switching to PresentationMode failed
  • Loading branch information
calixteman authored Sep 12, 2022
2 parents 2d1d64b + 71f8680 commit 493bb65
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web/pdf_cursor_tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,10 @@ class PDFCursorTools {
case PresentationModeState.NORMAL: {
const previouslyActive = this.activeBeforePresentationMode;

this.activeBeforePresentationMode = null;
this.switchTool(previouslyActive);
if (previouslyActive !== null) {
this.activeBeforePresentationMode = null;
this.switchTool(previouslyActive);
}
break;
}
}
Expand Down

0 comments on commit 493bb65

Please sign in to comment.