Search code examples
getorgchart

GetOrgChart still zoom using gesture on mobile device


I'm using GetOrgChart js, it provided the function for enableZoom which will not zoom in website using mouse scroll, however, when deploy it with cordova, it still allow zooming for gesture (two fingers scale in/out), any ways to prevent it in mobile?


Solution

  • Add the following tag in your head element

    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">