mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Issue#145 : Hide highlighted pixel
+ BaseTool : added new method hideHighlightedPixel + DrawingController : mousemove event plugged on mousenter and unplugged on mouseleave + DrawingController : tool.hideHighlightPixel called on mouseleave and when switching the current tool to active (i.e. when user starts clicking)
This commit is contained in:
@@ -31,6 +31,13 @@
|
||||
}
|
||||
};
|
||||
|
||||
ns.BaseTool.prototype.hideHighlightedPixel = function(overlay) {
|
||||
overlay.setPixel(this.highlightedPixelCol, this.highlightedPixelRow, Constants.TRANSPARENT_COLOR);
|
||||
this.highlightedPixelRow = null;
|
||||
this.highlightedPixelCol = null;
|
||||
};
|
||||
|
||||
|
||||
ns.BaseTool.prototype.releaseToolAt = function(col, row, color, frame, overlay, event) {};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user