mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
started fixing a minor bug...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
72cc52ee36
commit
3f752c7425
@ -112,6 +112,8 @@ var SingleImageActions = actions.Actions({
|
||||
'ribbon-focus-mode': 'order',
|
||||
'shifts-affect-direction': 'off',
|
||||
},
|
||||
|
||||
'single-image-toggle-on-click': true,
|
||||
},
|
||||
|
||||
// XXX make this accept args for debuging...
|
||||
@ -432,6 +434,7 @@ module.SingleImageView = core.ImageGridFeatures.Feature({
|
||||
['imageBlockClick.pre',
|
||||
function(gid){
|
||||
if(gid == this.current
|
||||
&& this.config['single-image-toggle-on-click']
|
||||
&& this.toggleSingleImage('?') == 'off'){
|
||||
// indicate that we have handled the click...
|
||||
this.__clicked_block = true
|
||||
@ -445,6 +448,7 @@ module.SingleImageView = core.ImageGridFeatures.Feature({
|
||||
['imageClick.pre',
|
||||
function(gid){
|
||||
gid == this.current
|
||||
&& this.config['single-image-toggle-on-click']
|
||||
&& this.toggleSingleImage('?') == 'on'
|
||||
// only handle the click if it was not handled in
|
||||
// imageBlockClick...
|
||||
|
||||
@ -179,6 +179,9 @@ var SlideshowActions = actions.Actions({
|
||||
this.loadWorkspace('slideshow')
|
||||
}
|
||||
|
||||
// XXX
|
||||
this.config['single-image-toggle-on-click'] = false
|
||||
|
||||
// start the timer...
|
||||
this.__slideshouw_timer = setInterval(function(){
|
||||
var cur = that.current
|
||||
|
||||
@ -1378,7 +1378,7 @@ var ButtonsActions = actions.Actions({
|
||||
'main-buttons': {
|
||||
'☰': ['menu', 'browseActions -- Action menu...'],
|
||||
'C<sub/>': ['crop', 'browseActions: "Crop/" -- Crop menu...'],
|
||||
'⛶': ['view', 'toggleSingleImage -- Single image / ribbon toggle'],
|
||||
//'⛶': ['view', 'toggleSingleImage -- Single image / ribbon toggle'],
|
||||
},
|
||||
|
||||
// XXX not sure about these yet...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user