mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Issue #163: show highlighter pixel for selection tools when no selection
This commit is contained in:
parent
a383e59280
commit
34f2a9df0b
@ -8,8 +8,6 @@
|
||||
|
||||
ns.AbstractDragSelect = function () {
|
||||
ns.BaseSelect.call(this);
|
||||
|
||||
this.hasSelection = false;
|
||||
};
|
||||
|
||||
pskl.utils.inherit(ns.AbstractDragSelect, ns.BaseSelect);
|
||||
|
@ -18,6 +18,7 @@
|
||||
this.lastMoveRow = null;
|
||||
|
||||
this.selection = null;
|
||||
this.hasSelection = false;
|
||||
|
||||
this.tooltipDescriptors = [
|
||||
{description : 'Drag the selection to move it. You may switch to other layers and frames.'},
|
||||
@ -95,6 +96,10 @@
|
||||
this.bodyRoot.removeClass(this.secondaryToolId);
|
||||
}
|
||||
}
|
||||
|
||||
if (!this.hasSelection) {
|
||||
pskl.tools.drawing.BaseTool.prototype.moveUnactiveToolAt.apply(this, arguments);
|
||||
}
|
||||
};
|
||||
|
||||
ns.BaseSelect.prototype.isInSelection = function (col, row) {
|
||||
@ -103,10 +108,6 @@
|
||||
});
|
||||
};
|
||||
|
||||
ns.BaseSelect.prototype.hideHighlightedPixel = function() {
|
||||
// there is no highlighted pixel for selection tools, do nothing
|
||||
};
|
||||
|
||||
/**
|
||||
* Protected method, should be called when the selection is dismissed.
|
||||
*/
|
||||
|
@ -8,7 +8,6 @@
|
||||
|
||||
ns.ShapeSelect = function() {
|
||||
ns.BaseSelect.call(this);
|
||||
this.hasSelection = false;
|
||||
|
||||
this.toolId = 'tool-shape-select';
|
||||
this.helpText = 'Shape selection';
|
||||
|
Loading…
Reference in New Issue
Block a user