mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-12-17 08:41:40 +00:00
added an alternative way to handle screen nav and current indicator...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
3a4fddb96d
commit
da1a4d1a93
@ -1931,10 +1931,11 @@ module.CurrentImageIndicator = Feature({
|
||||
}
|
||||
}],
|
||||
|
||||
// hide indicator on screen next/prev...
|
||||
//
|
||||
// XXX experimental -- not sure if we need this...
|
||||
// XXX need to think about the trigger mechanics here and make
|
||||
// them more natural...
|
||||
// NOTE: we use .pre events here to see if we have moved...
|
||||
['prevScreen.pre nextScreen.pre',
|
||||
function(){
|
||||
var m = this.ribbons.viewer.find('.current-marker')
|
||||
@ -1976,6 +1977,25 @@ module.CurrentImageIndicator = Feature({
|
||||
}, t-50)
|
||||
}
|
||||
}],
|
||||
|
||||
/*
|
||||
// XXX one other way to do this:
|
||||
// - hide on screen jump
|
||||
// - show on any other action
|
||||
// NOTE: we use .pre events here to see if we have moved...
|
||||
['prevScreen.post nextScreen.post',
|
||||
function(){
|
||||
var m = this.ribbons.viewer.find('.current-marker')
|
||||
|
||||
m.css({ opacity: 0 })
|
||||
}],
|
||||
['focusImage.post',
|
||||
function(){
|
||||
var m = this.ribbons.viewer.find('.current-marker')
|
||||
|
||||
m.css({ opacity: '' })
|
||||
}],
|
||||
*/
|
||||
],
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user