function cancelZoom() {
        var d = document,
            viewport,
            content,
            maxScale = ',maximum-scale=',
            maxScaleRegex = /,*maximum\-scale\=\d*\.*\d*/;

        // this should be a focusable DOM Element
        if (!this.addEventListener || !d.querySelector) {
            return;
        }

        viewport = d.querySelector('meta[name="viewport"]');
        content = viewport.content;

        function changeViewport(event) {
            viewport.content = content + (event.type == 'blur' ? (content.match(maxScaleRegex, '') ? '' : maxScale + 10) : maxScale + 1);
        }

        // We could use DOMFocusIn here, but it's deprecated.
        this.addEventListener('focus', changeViewport, true);
        this.addEventListener('blur', changeViewport, false);
    }
/*Ios fix zoom on form elems focus*/
Ios fix zoom on form elems focus
Ios fix zoom on form elems focus
function cancelZoom() {
        var d = document,
            viewport,
            content,
            maxScale = ',maximum-scale=',
            maxScaleRegex = /,*maximum\-scale\=\d*\.*\d*/;
        if (!this.addEventListener || !d.querySelector) {
            return;
        }
        viewport = d.querySelector('meta[name="viewport"]');
        content = viewport.content;
        function changeViewport(event) {
            viewport.content = content + (event.type == 'blur' ? (content.match(maxScaleRegex, '') ? '' : maxScale + 10) : maxScale + 1);
        }
        this.addEventListener('focus', changeViewport, true);
        this.addEventListener('blur', changeViewport, false);
    }
function cancelZoom ( ) { var d = document , viewport , content , maxScale = ',maximum-scale=' , maxScaleRegex = / ,*maximum\-scale\=\d*\.*\d* / ; if ( ! this . addEventListener || ! d . querySelector ) { return ; } viewport = d . querySelector ( 'meta[name="viewport"]' ) ; content = viewport . content ; function changeViewport ( event ) { viewport . content = content + ( event . type == 'blur' ? ( content . match ( maxScaleRegex , '' ) ? '' : maxScale + 10 ) : maxScale + 1 ) ; } this . addEventListener ( 'focus' , changeViewport , true ) ; this . addEventListener ( 'blur' , changeViewport , false ) ; }
Ios fix zoom on form elems focus
Ios fix zoom on form elems focus
// this should be a focusable DOM Element
 // We could use DOMFocusIn here, but it's deprecated.
