mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
window not w, evt wasn't defined. Thanks @staabm
This commit is contained in:
parent
5725b4bac9
commit
edad9c1f9a
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ define( [ "jquery", "jquery.mobile.core", "jquery.mobile.zoom" ], function( $ )
|
|||
//>>excludeEnd("jqmBuildExclude");
|
||||
( function( $, window ) {
|
||||
var zoom = $.mobile.zoom,
|
||||
x, y, z, aig;
|
||||
evt, x, y, z, aig;
|
||||
|
||||
function checkTilt( e ){
|
||||
evt = e.originalEvent;
|
||||
|
|
@ -17,7 +17,7 @@ define( [ "jquery", "jquery.mobile.core", "jquery.mobile.zoom" ], function( $ )
|
|||
z = Math.abs( aig.z );
|
||||
|
||||
// If portrait orientation and in one of the danger zones
|
||||
if( !w.orientation && ( x > 7 || ( ( z > 6 && y < 8 || z < 8 && y > 6 ) && x > 5 ) ) ){
|
||||
if( !window.orientation && ( x > 7 || ( ( z > 6 && y < 8 || z < 8 && y > 6 ) && x > 5 ) ) ){
|
||||
if( zoom.enabled ){
|
||||
zoom.disable();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue