mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +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': '',
|
||||
// NOTE: this is descending by default...
|
||||
'Date': 'metadata.createDate birthtime reverse',
|
||||
'File date': 'birthtime reverse',
|
||||
'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',
|
||||
// XXX sequence number with overflow...
|
||||
//'File sequence number with overflow': 'name-leading-sequence name path',
|
||||
|
||||
@ -209,6 +209,17 @@ module.SingleImageView = core.ImageGridFeatures.Feature({
|
||||
actions: SingleImageActions,
|
||||
|
||||
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',
|
||||
function(){
|
||||
// singe image mode -- set image proportions...
|
||||
|
||||
@ -260,6 +260,9 @@ module.ViewerActions = actions.Actions({
|
||||
.refresh()
|
||||
.focusImage()
|
||||
|
||||
// XXX HACK to make browser redraw images...
|
||||
this.scale = this.scale
|
||||
|
||||
this.ribbons.restoreTransitions()
|
||||
}
|
||||
}],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user