mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
minor tweak...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
c0ca5bc13e
commit
38505aa948
@ -153,6 +153,11 @@ actions.Actions({
|
||||
var steps = this.direction_change_steps
|
||||
var direction = this.__direction || new Array(steps)
|
||||
|
||||
// normalize length...
|
||||
direction = direction.length > steps ?
|
||||
direction.slice(0, steps)
|
||||
: direction
|
||||
|
||||
// value ends with '!' -> force direction change...
|
||||
direction = (value.endsWith('!')
|
||||
&& direction[0] != value.slice(0, -1)) ?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user