fix pick color with middle mouse no longer workin

This commit is contained in:
juliandescottes 2016-10-09 23:37:04 +02:00
parent 5a39d6850e
commit 7ae40d8794

View File

@ -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(