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