mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2025-03-13 22:50:01 -04:00
Merge pull request #117 from paulkaplan/also-ctrl-key
Allow ctrl key to zoom
This commit is contained in:
commit
2be90c1633
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