some tweaking...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-06-03 18:31:37 +04:00
parent 209f92b1bf
commit 0fc2ebd064
3 changed files with 7 additions and 6 deletions

View File

@ -52,10 +52,8 @@ $(function(){
$(window)
.resize(function() {
// XXX should this be animated or not?
correctImageProportionsForRotation('.images')
centerView()
// XXX problems in single image mode after hitting F11...
})
$(document)

View File

@ -482,8 +482,11 @@ var KEYBOARD_CONFIG = {
})
},
F4: doc('Open image in external software', openImage),
E: 'F4',
E: doc('Open image in external software', openImage),
F4: {
default: 'E',
alt: doc('Close viewer'),
},
P: doc('Show options',

View File

@ -314,7 +314,7 @@ var toggleImageProportions = createCSSClassToggler('.viewer',
var w = image.outerWidth(true)
// viewer proportions...
if(action == 'fit-image-to-viewer'){
if(action == 'fit-viewer'){
var viewer = $('.viewer')
var W = viewer.innerWidth()
var H = viewer.innerHeight()