mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
added a hack to solve the image blur problem in chrome (temporary)...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
fbddc9e2ad
commit
543afbddfb
@ -582,8 +582,9 @@ module.SortActions = actions.Actions({
|
|||||||
'none': '',
|
'none': '',
|
||||||
// NOTE: this is descending by default...
|
// NOTE: this is descending by default...
|
||||||
'Date': 'metadata.createDate birthtime reverse',
|
'Date': 'metadata.createDate birthtime reverse',
|
||||||
|
'File date': 'birthtime reverse',
|
||||||
'Name (XP-style)': 'name-leading-sequence name path',
|
'Name (XP-style)': 'name-leading-sequence name path',
|
||||||
'File sequence number': 'name-leading-sequence name path',
|
'File sequence number': 'name-sequence name path',
|
||||||
'Name': 'name path',
|
'Name': 'name path',
|
||||||
// XXX sequence number with overflow...
|
// XXX sequence number with overflow...
|
||||||
//'File sequence number with overflow': 'name-leading-sequence name path',
|
//'File sequence number with overflow': 'name-leading-sequence name path',
|
||||||
|
|||||||
@ -209,6 +209,17 @@ module.SingleImageView = core.ImageGridFeatures.Feature({
|
|||||||
actions: SingleImageActions,
|
actions: SingleImageActions,
|
||||||
|
|
||||||
handlers:[
|
handlers:[
|
||||||
|
// XXX HACK: force browser to redraw off-screen images...
|
||||||
|
// ...it appears that chrome cheats by not resizing off-screen
|
||||||
|
// images properly after changing scale...
|
||||||
|
// XXX this is still not perfect...
|
||||||
|
// ...if needed do a .reload() / ctrl-r
|
||||||
|
['focusImage',
|
||||||
|
function(){
|
||||||
|
if(this.toggleSingleImage('?') == 'on'){
|
||||||
|
this.scale = this.scale
|
||||||
|
}
|
||||||
|
}],
|
||||||
['fitImage.post setScale.post',
|
['fitImage.post setScale.post',
|
||||||
function(){
|
function(){
|
||||||
// singe image mode -- set image proportions...
|
// singe image mode -- set image proportions...
|
||||||
|
|||||||
@ -260,6 +260,9 @@ module.ViewerActions = actions.Actions({
|
|||||||
.refresh()
|
.refresh()
|
||||||
.focusImage()
|
.focusImage()
|
||||||
|
|
||||||
|
// XXX HACK to make browser redraw images...
|
||||||
|
this.scale = this.scale
|
||||||
|
|
||||||
this.ribbons.restoreTransitions()
|
this.ribbons.restoreTransitions()
|
||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user