Disable Chrome pinch zoom for use in kiosk

前端 未结 6 2072

We are using Chrome in kiosk mode and accidentally users are causing the application to zoom with the recent addition of pinch zoom support. They then think they\'ve broken it

6条回答
  •  庸人自扰
    2021-01-30 11:12

    html {
      touch-action:none;
    }
    

    This will disable browser handling of all panning and zooming gestures. The gesture will still be available for handling by javascript code.

    https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action

提交回复
热议问题