started fixing a minor bug...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-03-14 03:11:31 +03:00
parent 72cc52ee36
commit 3f752c7425
3 changed files with 8 additions and 1 deletions

View File

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

View File

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

View File

@ -1378,7 +1378,7 @@ var ButtonsActions = actions.Actions({
'main-buttons': {
'&#x2630;': ['menu', 'browseActions -- Action menu...'],
'C<sub/>': ['crop', 'browseActions: "Crop/" -- Crop menu...'],
'&#9974;': ['view', 'toggleSingleImage -- Single image / ribbon toggle'],
//'&#9974;': ['view', 'toggleSingleImage -- Single image / ribbon toggle'],
},
// XXX not sure about these yet...