PDA

View Full Version : WebEngineView: Avoid zoom in touch devices



ddonate
21st December 2016, 12:16
I found the way. I need to add 'style="touch-action: none' in the body header

ddonate
22nd December 2016, 11:20
It seems that my first post text was lost... I said:

Hi,

I have a WebEngineView in a QML element, and I need to avoid zooming on touch devices (by using the fingers, I mean). I have a touchscreen with windows 10

I have not found anything to add in the QML side, so I have tried to add code in the HTML I load (in the <head>):

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
but no success.

Thanks,
Diego