Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Filipe Vieira 2014-04-30 23:59:47 +01:00
commit b2bdb252b7
2 changed files with 8 additions and 10 deletions

View File

@ -54,8 +54,8 @@
this.minimapController = new pskl.controller.MinimapController(this.piskelController, this.animationController, this.drawingController, $('#preview-canvas-container'));
this.minimapController.init();
this.previewsController = new pskl.controller.PreviewFilmController(this.piskelController, $('#preview-list'));
this.previewsController.init();
this.previewFilmController = new pskl.controller.PreviewFilmController(this.piskelController, $('#preview-list'));
this.previewFilmController.init();
this.layersListController = new pskl.controller.LayersListController(this.piskelController);
this.layersListController.init();
@ -144,7 +144,7 @@
render : function (delta) {
this.drawingController.render(delta);
this.animationController.render(delta);
this.previewsController.render(delta);
this.previewFilmController.render(delta);
},
readSizeFromURL_ : function () {

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);
}
};
/**