Vue H5 mobile phone disable zoom code

In Index.html, write

   
In app.Vue, write

window.onload = function () {document.addEventListener ( ‘touchstart’, function (event) {if (event.touches.length> 1) {event.preventDefault ()}}) document.addEventListener ( ‘gesturestart ‘, function () {Event.preventdefault ()})}

The above Vue H6 mobile terminal is prohibited from zooming code is Xiaobian sharing to everyone. All content, I hope to give you a reference, I also hope that you will support Tumi Clouds.
                     
© Copyright Notice
THE END
Just support it if you like
like0
share
comment Grab the couch

Please log in to comment