minor tweaks n' notes...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-03-10 04:45:25 +03:00
parent 2680b74450
commit 2ffce0d69e
2 changed files with 3 additions and 1 deletions

View File

@ -1382,7 +1382,7 @@ var ButtonsActions = actions.Actions({
//'<i>ImageGrid.Viewer</i>': ['title', ''], //'<i>ImageGrid.Viewer</i>': ['title', ''],
//'t': ['touch', 'toggleSideButtons -- Toggle touch ui'], //'t': ['touch', 'toggleSideButtons -- Toggle touch ui'],
//'&#9965;': ['ui-settings', 'browseActions: "Interface/" -- Interface settings...'], //'&#9965;': ['ui-settings', 'browseActions: "Interface/" -- Interface settings...'],
'&#9974;': ['single-image', 'toggleSingleImage -- View mode'], '&#9974;': ['view', 'toggleSingleImage -- Single image / ribbon toggle'],
}, },
// XXX not sure about these yet... // XXX not sure about these yet...

View File

@ -1990,10 +1990,12 @@ var ControlActions = actions.Actions({
h *= s h *= s
// preview offsets within the block... // preview offsets within the block...
// NOTE: this assumes the image is centered...
var dw = (W-w)/2 var dw = (W-w)/2
var dh = (H-h)/2 var dh = (H-h)/2
// check if we clicked the image... // check if we clicked the image...
// NOTE: this assumes the image is centered...
var clicked_image = var clicked_image =
(x >= dw && x <= W-dw) (x >= dw && x <= W-dw)
&& (y >= dh && y <= H-dh) && (y >= dh && y <= H-dh)