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:
Alex A. Naanou 2016-04-25 14:34:32 +03:00
parent fbddc9e2ad
commit 543afbddfb
3 changed files with 16 additions and 1 deletions

View File

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

View File

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

View File

@ -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()
} }
}], }],