Added back zoom

This commit is contained in:
unsettledgames
2021-11-01 12:31:09 +01:00
parent c1aba0a89e
commit 2d8974f9d6
8 changed files with 112 additions and 78 deletions

View File

@ -8,9 +8,12 @@ class EyedropperTool extends Tool {
Events.on('click', this.mainButton, switchFunction, this);
}
onStart(mousePos) {
onStart(mousePos, target) {
super.onStart(mousePos);
if (target.className != 'drawingCanvas')
return;
this.eyedropperPreview.style.display = 'block';
this.onDrag(mousePos);
}