fullscreen: alt. scale mode only if image < window
This commit is contained in:
parent
06c2a24c9e
commit
066102e64d
|
@ -41,16 +41,18 @@ HPopup {
|
||||||
|
|
||||||
function showFullScreen() {
|
function showFullScreen() {
|
||||||
if (activedFullScreen) return
|
if (activedFullScreen) return
|
||||||
|
|
||||||
window.showFullScreen()
|
window.showFullScreen()
|
||||||
popup.activedFullScreen = true
|
popup.activedFullScreen = true
|
||||||
popup.alternateScaling = true
|
if (! imageLargerThanWindow) popup.alternateScaling = true
|
||||||
}
|
}
|
||||||
|
|
||||||
function exitFullScreen() {
|
function exitFullScreen() {
|
||||||
if (! activedFullScreen) return
|
if (! activedFullScreen) return
|
||||||
|
|
||||||
window.showNormal()
|
window.showNormal()
|
||||||
popup.activedFullScreen = false
|
popup.activedFullScreen = false
|
||||||
popup.alternateScaling = false
|
if (! imageLargerThanWindow) popup.alternateScaling = false
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleFulLScreen() {
|
function toggleFulLScreen() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user