Convert the hand tool to a class

This commit is contained in:
Tim van der Meij 2016-04-16 16:47:48 +02:00
parent 7f90f5bfed
commit b0aca31de8
2 changed files with 64 additions and 35 deletions

View file

@ -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'