What's the point of 'meta viewport user-scalable=no' in the Google Maps API

后端 未结 4 953
陌清茗
陌清茗 2020-12-04 08:13

I\'m using the Google Maps JavaScript API V3 and the official examples always have you include this meta tag:



        
4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-04 09:02

    Disabling user-scalable (namely, the ability to double tap to zoom) allows the browser to reduce the click delay. In touch-enable browsers, when the user expects the double tap to zoom, the browser generally waits 300ms before firing the click event, waiting to see if the user will double tap. Disabling user-scalable allows for the Chrome browser to fire the click event immediately, allowing for a better user experience.

    From Google IO 2013 session https://www.youtube.com/watch?feature=player_embedded&v=DujfpXOKUp8#t=1435s

    Update: its not true anymore, is enough to remove 300ms delay

提交回复
热议问题