mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +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', ''],
|
//'<i>ImageGrid.Viewer</i>': ['title', ''],
|
||||||
//'t': ['touch', 'toggleSideButtons -- Toggle touch ui'],
|
//'t': ['touch', 'toggleSideButtons -- Toggle touch ui'],
|
||||||
//'⛭': ['ui-settings', 'browseActions: "Interface/" -- Interface settings...'],
|
//'⛭': ['ui-settings', 'browseActions: "Interface/" -- Interface settings...'],
|
||||||
'⛶': ['single-image', 'toggleSingleImage -- View mode'],
|
'⛶': ['view', 'toggleSingleImage -- Single image / ribbon toggle'],
|
||||||
},
|
},
|
||||||
|
|
||||||
// XXX not sure about these yet...
|
// XXX not sure about these yet...
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user