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', ''],
//'t': ['touch', 'toggleSideButtons -- Toggle touch ui'],
//'&#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...

View File

@ -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)