mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
use maximum scale instead of user-scaling, as it's more reliable for restoring zoom
This commit is contained in:
parent
79b1979177
commit
db453434a8
1 changed files with 2 additions and 2 deletions
|
|
@ -7,8 +7,8 @@ define( [ "jquery", "jquery.mobile.core" ], function( $ ) {
|
|||
( function( $ ) {
|
||||
var meta = $( "meta[name=viewport]" ),
|
||||
initialContent = meta.attr( "content" ),
|
||||
disabledZoom = initialContent + ",user-scalable=no",
|
||||
enabledZoom = initialContent + ",user-scalable=yes";
|
||||
disabledZoom = initialContent + ",maximum-scale=1",
|
||||
enabledZoom = initialContent + ",maximum-scale=10";
|
||||
|
||||
$.mobile.zoom = $.extend( {}, {
|
||||
enabled: true,
|
||||
|
|
|
|||
Loading…
Reference in a new issue