From 2ffce0d69e622ce09b7f7723dc730b0b4201c206 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 10 Mar 2017 04:45:25 +0300 Subject: [PATCH] minor tweaks n' notes... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/ui-widgets.js | 2 +- ui (gen4)/features/ui.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ui (gen4)/features/ui-widgets.js b/ui (gen4)/features/ui-widgets.js index a824f992..9b5be619 100755 --- a/ui (gen4)/features/ui-widgets.js +++ b/ui (gen4)/features/ui-widgets.js @@ -1382,7 +1382,7 @@ var ButtonsActions = actions.Actions({ //'ImageGrid.Viewer': ['title', ''], //'t': ['touch', 'toggleSideButtons -- Toggle touch ui'], //'⛭': ['ui-settings', 'browseActions: "Interface/" -- Interface settings...'], - '⛶': ['single-image', 'toggleSingleImage -- View mode'], + '⛶': ['view', 'toggleSingleImage -- Single image / ribbon toggle'], }, // XXX not sure about these yet... diff --git a/ui (gen4)/features/ui.js b/ui (gen4)/features/ui.js index c79c37ac..662a2ad6 100755 --- a/ui (gen4)/features/ui.js +++ b/ui (gen4)/features/ui.js @@ -1990,10 +1990,12 @@ var ControlActions = actions.Actions({ h *= s // preview offsets within the block... + // NOTE: this assumes the image is centered... var dw = (W-w)/2 var dh = (H-h)/2 // check if we clicked the image... + // NOTE: this assumes the image is centered... var clicked_image = (x >= dw && x <= W-dw) && (y >= dh && y <= H-dh)