mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Resolve eslint warnings.
This commit is contained in:
parent
a3b6a6c564
commit
95ced4a30c
11340
package-lock.json
generated
Normal file
11340
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -15,7 +15,7 @@
|
|||||||
this.tooltipDescriptors = [
|
this.tooltipDescriptors = [
|
||||||
{key : 'ctrl', description : 'Use 25% dither'},
|
{key : 'ctrl', description : 'Use 25% dither'},
|
||||||
{key : 'shift', description : 'Use 75% dither'},
|
{key : 'shift', description : 'Use 75% dither'},
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
pskl.utils.inherit(ns.DitheringTool, ns.SimplePen);
|
pskl.utils.inherit(ns.DitheringTool, ns.SimplePen);
|
||||||
@ -41,11 +41,10 @@
|
|||||||
ns.DitheringTool.prototype.applyToolOnPixel = function(col, row, frame, overlay, event) {
|
ns.DitheringTool.prototype.applyToolOnPixel = function(col, row, frame, overlay, event) {
|
||||||
var usePrimaryColor = (col + row) % 2;
|
var usePrimaryColor = (col + row) % 2;
|
||||||
|
|
||||||
if( pskl.utils.UserAgent.isMac ? event.metaKey : event.ctrlKey ) {
|
if (pskl.utils.UserAgent.isMac ? event.metaKey : event.ctrlKey) {
|
||||||
usePrimaryColor = col%2 || row%2
|
usePrimaryColor = col % 2 || row % 2;
|
||||||
}
|
} else if (event.shiftKey) {
|
||||||
else if( event.shiftKey ) {
|
usePrimaryColor = col % 2 && row % 2;
|
||||||
usePrimaryColor = col%2 && row%2
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pskl.app.mouseStateService.isRightButtonPressed()) {
|
if (pskl.app.mouseStateService.isRightButtonPressed()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user