Convert the hand tool to a class
This commit is contained in:
parent
7f90f5bfed
commit
b0aca31de8
2 changed files with 64 additions and 35 deletions
|
@ -225,11 +225,10 @@ var PDFViewerApplication = {
|
|||
|
||||
this.overlayManager = OverlayManager;
|
||||
|
||||
HandTool.initialize({
|
||||
this.handTool = new HandTool({
|
||||
container: container,
|
||||
toggleHandTool: document.getElementById('toggleHandTool')
|
||||
});
|
||||
this.handTool = HandTool;
|
||||
|
||||
this.pdfDocumentProperties = new PDFDocumentProperties({
|
||||
overlayName: 'documentPropertiesOverlay',
|
||||
|
@ -2148,7 +2147,7 @@ window.addEventListener('keydown', function keydown(evt) {
|
|||
|
||||
case 72: // 'h'
|
||||
if (!isViewerInPresentationMode) {
|
||||
HandTool.toggle();
|
||||
PDFViewerApplication.handTool.toggle();
|
||||
}
|
||||
break;
|
||||
case 82: // 'r'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue