mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-24 09:50:26 +00:00
Used documentElement.clientWidth/Height. Fixes #313
This commit is contained in:
parent
c45b0e3560
commit
81fe1d2aea
1 changed files with 1 additions and 1 deletions
|
|
@ -156,7 +156,7 @@ $.event.special.swipe = {
|
|||
|
||||
$.event.special.orientationchange = {
|
||||
orientation: function( elem ) {
|
||||
return document.body && elem.width() / elem.height() < 1.1 ? "portrait" : "landscape";
|
||||
return document.documentElement && document.documentElement.clientWidth / document.documentElement.clientHeight < 1.1 ? "portrait" : "landscape";
|
||||
},
|
||||
|
||||
setup: function() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue