mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
minor tweaks n' notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
2680b74450
commit
2ffce0d69e
@ -1382,7 +1382,7 @@ var ButtonsActions = actions.Actions({
|
||||
//'<i>ImageGrid.Viewer</i>': ['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...
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user