mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
fix pick color with middle mouse no longer workin
This commit is contained in:
parent
5a39d6850e
commit
7ae40d8794
@ -311,7 +311,8 @@
|
|||||||
if (this.dragHandler.isDragging()) {
|
if (this.dragHandler.isDragging()) {
|
||||||
this.dragHandler.stopDrag();
|
this.dragHandler.stopDrag();
|
||||||
} else if (frame.containsPixel(coords.x, coords.y)) {
|
} else if (frame.containsPixel(coords.x, coords.y)) {
|
||||||
$.publish(Events.SELECT_PRIMARY_COLOR, [frame.getPixel(coords.x, coords.y)]);
|
var color = pskl.utils.intToColor(frame.getPixel(coords.x, coords.y));
|
||||||
|
$.publish(Events.SELECT_PRIMARY_COLOR, [color]);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.currentToolBehavior.releaseToolAt(
|
this.currentToolBehavior.releaseToolAt(
|
||||||
|
Loading…
Reference in New Issue
Block a user