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 = {
originalEvent: event.originalEvent,
preventDefaultAction: false,
preventVerticalPan: event.preventVerticalPan,
preventHorizontalPan: event.preventHorizontalPan
preventVerticalPan: !this.panVertical,
preventHorizontalPan: !this.panHorizontal
};
/**

View File

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