Skip to content

Commit 9b03018

Browse files
committed
refactor: add support for numpad + and - keys
1 parent f0e529d commit 9b03018

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/js/core.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,7 @@ class PhotoViewer {
749749
break;
750750
// +
751751
case 187:
752+
case 107:
752753
this.zoom(
753754
this.options.ratioThreshold * 3,
754755
{ x: this.$stage.width() / 2, y: this.$stage.height() / 2 },
@@ -757,6 +758,7 @@ class PhotoViewer {
757758
break;
758759
// -
759760
case 189:
761+
case 109:
760762
this.zoom(
761763
-this.options.ratioThreshold * 3,
762764
{ x: this.$stage.width() / 2, y: this.$stage.height() / 2 },

0 commit comments

Comments
 (0)