markokas Posted August 2, 2021 Share Posted August 2, 2021 Hi all, How to disable zoom in/out with dual touch on Iphone - Safari. On Android is no problem. I am using UnimMap and instead of zooming map, all app zoom in zoom out. already add to Server Module/meta <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <meta name="HandheldFriendly" content="true" /> also try to add to mainmForm (I do not know which event is right one - after render is not on list) document.body.addEventListener('touchmove',function(event){ event.preventDefault(); },false); On Android works fine. Am I miss something? using: Delphi RIO, latest Unigui release. Thanks in advance. Br, Marko. Link to comment Share on other sites More sharing options...
markokas Posted August 3, 2021 Author Share Posted August 3, 2021 Found solution, MainmForm.ClientEvents function window.show(sender, eOpts) { document.addEventListener('touchmove', function(e) { e.preventDefault(); }, {passive:false}); } br,mk. 1 Link to comment Share on other sites More sharing options...
Recommended Posts