mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-23 05:52:42 -05:00
Allow ctrl key to zoom
This commit is contained in:
parent
5bae62e7d1
commit
76b9efabeb
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue