Allow ctrl key to zoom

This commit is contained in:
Paul Kaplan 2017-10-27 11:18:21 -04:00
parent 5bae62e7d1
commit 76b9efabeb

View file

@ -125,7 +125,7 @@ class PaperCanvas extends React.Component {
}
}
handleWheel (event) {
if (event.metaKey) {
if (event.metaKey || event.ctrlKey) {
// Zoom keeping mouse location fixed
const canvasRect = this.canvas.getBoundingClientRect();
const offsetX = event.clientX - canvasRect.left;