From 9ea3f79903c3ebb5924bc31e82a1429611246e73 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 24 Mar 2017 17:34:42 +0300 Subject: [PATCH] bug fixed... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/base.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ui (gen4)/features/base.js b/ui (gen4)/features/base.js index 1ccf19c2..85e51523 100755 --- a/ui (gen4)/features/base.js +++ b/ui (gen4)/features/base.js @@ -162,6 +162,9 @@ actions.Actions({ return } this.direction = this._direction_last + // NOTE: this stabilizes the .direction, preventing repeating + // the last explicitly set value over and over again... + this._direction_last = this.direction // force direction change... } else if(typeof(value) == typeof('str') @@ -625,9 +628,6 @@ actions.Actions({ {undo: function(a){ this.shiftImageTo(a.args[1], a.args[0]) }}, function(target, to){ this.data.shiftImage(target, to) }], - // XXX BUG: this messes up .direction handling... - // to repeat: - // - shiftImageUp: ['Edit|Image/Shift image up', core.doc`Shift image up... @@ -649,7 +649,8 @@ actions.Actions({ this.data.shiftImageUp(cur) this.focusImage(next) - this.config['shifts-affect-direction'] == 'on' && (this.direction = '!') + this.config['shifts-affect-direction'] == 'on' + && (this.direction = '!') // if a specific target is given, just shift it... } else {