From 0cba7dc760de0e3f2c90698045c3bd44f66f44a9 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 29 Mar 2017 17:22:35 +0300 Subject: [PATCH] some minor refactoring... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/ui.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ui (gen4)/features/ui.js b/ui (gen4)/features/ui.js index ac24195a..4e8355fd 100755 --- a/ui (gen4)/features/ui.js +++ b/ui (gen4)/features/ui.js @@ -881,12 +881,14 @@ module.ViewerActions = actions.Actions({ function(){ this.screenfit = 1 }], // NOTE: these work by getting the target position from .data... + /* shiftImageTo: [ function(target){ return updateImagePosition(this, target) }], shiftImageUp: [ function(target){ return updateImagePosition(this, target) }], shiftImageDown: [ function(target){ return updateImagePosition(this, target) }], + //*/ shiftImageLeft: [ function(target){ this.ribbons.placeImage(target, -1) }], shiftImageRight: [ @@ -1101,6 +1103,16 @@ module.Viewer = core.ImageGridFeatures.Feature({ ['resizingDone', function(){ this.scale = this.scale }], //*/ + + [[ + 'shiftImageTo.pre', + 'shiftImageUp.pre', + 'shiftImageDown.pre', + ], + function(target){ + return updateImagePosition(this, target) }], + + // manage the .crop-mode css class... ['crop uncrop', function(){