mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
minor refactoring + docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
6385660b09
commit
6bffb4db59
@ -84,14 +84,15 @@ module.GLOBAL_KEYBOARD = {
|
|||||||
|
|
||||||
// zooming...
|
// zooming...
|
||||||
'#1': 'fitScreen',
|
'#1': 'fitScreen',
|
||||||
|
// XXX should these also be implemented in the same way as 4-9???
|
||||||
'#2': {
|
'#2': {
|
||||||
default: 'fitNormal',
|
default: 'fitNormal',
|
||||||
'alt': 'setNormalScale',
|
'alt': 'setNormalScale -- Set current image size as normal',
|
||||||
'ctrl+shift': 'setNormalScale: null -- Reset normal size to default',
|
'ctrl+shift': 'setNormalScale: null -- Reset normal size to default',
|
||||||
},
|
},
|
||||||
'#3': {
|
'#3': {
|
||||||
default: 'fitSmall',
|
default: 'fitSmall',
|
||||||
'alt': 'setSmallScale',
|
'alt': 'setSmallScale -- Set current image size as small',
|
||||||
'ctrl+shift': 'setSmallScale: null -- Reset small size to default',
|
'ctrl+shift': 'setSmallScale: null -- Reset small size to default',
|
||||||
},
|
},
|
||||||
'#4': customScale(4),
|
'#4': customScale(4),
|
||||||
|
|||||||
@ -748,7 +748,7 @@ module.ViewerActions = actions.Actions({
|
|||||||
|
|
||||||
// Zooming...
|
// Zooming...
|
||||||
//
|
//
|
||||||
// Zooming is done by multiplying the current scale by config['zoom-step']
|
// Zooming is done by multiplying the current scale by .config['zoom-step']
|
||||||
// and rounding to nearest discrete number of images to fit on screen.
|
// and rounding to nearest discrete number of images to fit on screen.
|
||||||
zoomIn: ['Zoom/Zoom in',
|
zoomIn: ['Zoom/Zoom in',
|
||||||
function(){
|
function(){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user