bug fixed...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-03-24 17:34:42 +03:00
parent dcf13b6797
commit 9ea3f79903

View File

@ -162,6 +162,9 @@ actions.Actions({
return return
} }
this.direction = this._direction_last 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... // force direction change...
} else if(typeof(value) == typeof('str') } else if(typeof(value) == typeof('str')
@ -625,9 +628,6 @@ actions.Actions({
{undo: function(a){ this.shiftImageTo(a.args[1], a.args[0]) }}, {undo: function(a){ this.shiftImageTo(a.args[1], a.args[0]) }},
function(target, to){ this.data.shiftImage(target, to) }], function(target, to){ this.data.shiftImage(target, to) }],
// XXX BUG: this messes up .direction handling...
// to repeat:
// -
shiftImageUp: ['Edit|Image/Shift image up', shiftImageUp: ['Edit|Image/Shift image up',
core.doc`Shift image up... core.doc`Shift image up...
@ -649,7 +649,8 @@ actions.Actions({
this.data.shiftImageUp(cur) this.data.shiftImageUp(cur)
this.focusImage(next) 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... // if a specific target is given, just shift it...
} else { } else {