mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Added back zoom
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user