Fix : selection : click on non transparent pixel was cancelling selection

This commit is contained in:
jdescottes
2014-04-30 08:30:29 +02:00
parent a060e32b15
commit 38f18360b8
2 changed files with 8 additions and 10 deletions

View File

@@ -34,16 +34,14 @@
// mode to create a selection.
// If the initial click is on a previous selection, we go in "moveSelection"
// mode to allow to move the selection by drag'n dropping it.
if(overlay.getPixel(col, row) != Constants.SELECTION_TRANSPARENT_COLOR) {
this.mode = "select";
this.onSelectStart_(col, row, color, frame, overlay);
}
else {
if(this.isInSelection(col, row)) {
this.mode = "moveSelection";
this.onSelectionDragStart_(col, row, color, frame, overlay);
}
else {
this.mode = "select";
this.onSelectStart_(col, row, color, frame, overlay);
}
};
/**