Temporary fix for arrow key panVertical bug

This commit is contained in:
Jachimike Onuoha 2021-11-30 17:43:11 -05:00
parent 0f1de455e2
commit 2edf48e880
2 changed files with 5 additions and 4 deletions

View File

@ -2657,8 +2657,8 @@ function onCanvasKeyDown( event ) {
var canvasKeyDownEventArgs = { var canvasKeyDownEventArgs = {
originalEvent: event.originalEvent, originalEvent: event.originalEvent,
preventDefaultAction: false, preventDefaultAction: false,
preventVerticalPan: event.preventVerticalPan, preventVerticalPan: !this.panVertical,
preventHorizontalPan: event.preventHorizontalPan preventHorizontalPan: !this.panHorizontal
}; };
/** /**

View File

@ -21,12 +21,13 @@
<script type="text/javascript"> <script type="text/javascript">
var viewer = OpenSeadragon({ var viewer = OpenSeadragon({
// debugMode: true, debugMode: true,
id: "contentDiv", id: "contentDiv",
prefixUrl: "../../build/openseadragon/images/", prefixUrl: "../../build/openseadragon/images/",
tileSources: "../data/testpattern.dzi", tileSources: "../data/testpattern.dzi",
showNavigator:true, showNavigator:true,
panHorizontal: false panVertical: false,
panHorizontal: true
}); });
</script> </script>
</body> </body>