mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-29 00:26:10 +03:00
Temporary fix for arrow key panVertical bug
This commit is contained in:
parent
0f1de455e2
commit
2edf48e880
@ -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
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user