We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
问题是这样婶的 windows froms应用内嵌webbrowser显示google地图,然后一般情况下没啥问题,使用起来美滋滋,但是有一天在一个windows触摸平板上测试的时候突然发现,双指捏合不能缩放地图,而且整个网页被放大缩小了。然后一顿查资料。
<meta content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" name="viewport">
#map{ touch-action: none; -ms-touch-action: none; }
别看了根本没用
调查发现googleMap对浏览器兼容有差别
支持的浏览器: 当前版本的 Microsoft Edge (Windows) Internet Explorer 10 和 11 (Windows) 当前版本和之前版本的 Firefox(Windows、macOS、Linux) 当前版本和之前版本的 Chrome(Windows、macOS、Linux) 当前版本和之前版本的 Safari (macOS)
然后就一顿调查发现有人说webbrowser模式是IE7 如果真的是这样的话,IE7肯定不行啊,然后就通过高打上的修改注册表实现强制使用最新版浏览器内核,安装测试,还是不行啊,FUCK,什么鬼,什么垃圾微软,什么垃圾IE。
最后调查禁止浏览器缩放的方法 最后找到通过修改组策略,禁止浏览器缩放页面,终于实现了这个问题,双指捏合的事件被正确的传递给googleMap处理缩放功能了,测试自带的IE浏览器页面缩放功能并没有受影响,不理解为什么双指捏合的事件浏览器优先级会高于googleMap
The text was updated successfully, but these errors were encountered:
No branches or pull requests
问题是这样婶的
windows froms应用内嵌webbrowser显示google地图,然后一般情况下没啥问题,使用起来美滋滋,但是有一天在一个windows触摸平板上测试的时候突然发现,双指捏合不能缩放地图,而且整个网页被放大缩小了。然后一顿查资料。
<meta content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" name="viewport">
别看了根本没用
调查发现googleMap对浏览器兼容有差别
支持的浏览器:
当前版本的 Microsoft Edge (Windows)
Internet Explorer 10 和 11 (Windows)
当前版本和之前版本的 Firefox(Windows、macOS、Linux)
当前版本和之前版本的 Chrome(Windows、macOS、Linux)
当前版本和之前版本的 Safari (macOS)
然后就一顿调查发现有人说webbrowser模式是IE7
如果真的是这样的话,IE7肯定不行啊,然后就通过高打上的修改注册表实现强制使用最新版浏览器内核,安装测试,还是不行啊,FUCK,什么鬼,什么垃圾微软,什么垃圾IE。
最后调查禁止浏览器缩放的方法
最后找到通过修改组策略,禁止浏览器缩放页面,终于实现了这个问题,双指捏合的事件被正确的传递给googleMap处理缩放功能了,测试自带的IE浏览器页面缩放功能并没有受影响,不理解为什么双指捏合的事件浏览器优先级会高于googleMap
The text was updated successfully, but these errors were encountered: