fix pick color with middle mouse no longer workin
This commit is contained in:
parent
5a39d6850e
commit
7ae40d8794
1 changed files with 2 additions and 1 deletions
|
@ -311,7 +311,8 @@
|
|||
if (this.dragHandler.isDragging()) {
|
||||
this.dragHandler.stopDrag();
|
||||
} 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 {
|
||||
this.currentToolBehavior.releaseToolAt(
|
||||
|
|
Loading…
Reference in a new issue