diff --git a/src/viewer.js b/src/viewer.js index a879a0bd..cf28f7b7 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -2657,8 +2657,8 @@ function onCanvasKeyDown( event ) { var canvasKeyDownEventArgs = { originalEvent: event.originalEvent, preventDefaultAction: false, - preventVerticalPan: event.preventVerticalPan, - preventHorizontalPan: event.preventHorizontalPan + preventVerticalPan: !this.panVertical, + preventHorizontalPan: !this.panHorizontal }; /** diff --git a/test/demo/basic.html b/test/demo/basic.html index 44bf70a4..af1bfb0d 100644 --- a/test/demo/basic.html +++ b/test/demo/basic.html @@ -21,12 +21,13 @@