Fix swapped direction title for mouse movements (#778)

This commit is contained in:
Jan Christoph Ebersbach
2018-09-16 00:16:11 +01:00
committed by László Monda
parent 123cab5724
commit 059f1d5505

View File

@@ -176,7 +176,7 @@ export class MacroItemComponent implements OnInit, OnChanges {
let needAnd: boolean;
if (Math.abs(typedAction.x) !== 0) {
this.title += ` by ${Math.abs(typedAction.x)}px ${typedAction.x > 0 ? 'leftward' : 'rightward'}`;
this.title += ` by ${Math.abs(typedAction.x)}px ${typedAction.x > 0 ? 'rightward' : 'leftward'}`;
needAnd = true;
}
if (Math.abs(typedAction.y) !== 0) {