Merge pull request #2069 from JachiOnuoha/JachiOnuoha-ArrowKeysBug

Fixed Arrow keys by pass panVertical/panHorizontal bug
This commit is contained in:
Ian Gilman 2021-12-17 14:49:12 -08:00 committed by GitHub
commit d9494c6d7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 deletions

View File

@ -2666,8 +2666,8 @@ function onCanvasKeyDown( event ) {
var canvasKeyDownEventArgs = {
originalEvent: event.originalEvent,
preventDefaultAction: false,
preventVerticalPan: event.preventVerticalPan,
preventHorizontalPan: event.preventHorizontalPan
preventVerticalPan: event.preventVerticalPan || !this.panVertical,
preventHorizontalPan: event.preventHorizontalPan || !this.panHorizontal
};
/**
@ -2737,8 +2737,8 @@ function onCanvasKeyPress( event ) {
var canvasKeyPressEventArgs = {
originalEvent: event.originalEvent,
preventDefaultAction: false,
preventVerticalPan: event.preventVerticalPan,
preventHorizontalPan: event.preventHorizontalPan
preventVerticalPan: event.preventVerticalPan || !this.panVertical,
preventHorizontalPan: event.preventHorizontalPan || !this.panHorizontal
};
// This event is documented in onCanvasKeyDown

View File

@ -27,7 +27,6 @@
tileSources: "../data/testpattern.dzi",
showNavigator:true
});
</script>
</body>
</html>