简体   繁体   English

捏缩放后iPhone谷歌地图v3平底锅

[英]iPhone google maps v3 pans after pinch zoom

I have a problem developing a web application for iPhone. 我在为iPhone开发Web应用程序时遇到问题。 When I visit a simple example like http://code.google.com/intl/sv-SE/apis/maps/documentation/javascript/examples/map-simple.html in an iPhone and do pinch zoom the map pans when I release the fingers from the screen. 当我在iPhone中访问一个简单的示例,如http://code.google.com/intl/sv-SE/apis/maps/documentation/javascript/examples/map-simple.html ,并在我按下时缩放地图平移从屏幕上松开手指。 This makes the map end up somewhere else than the place I zoomed to. 这使得地图最终在我缩放到的地方之外的其他地方。

Is there some way to prevent the map from panning after pinch zoom release? 是否有某种方法可以防止地图在捏缩放后释放后平移?

Unfortunately, the iPhone's use of touch screen technology - especially Cocoa - can have some odd effects when it comes to viewing a web app on a mobile device. 不幸的是,iPhone在触摸屏技术中的使用 - 尤其是Cocoa--在移动设备上查看网络应用程序时会产生一些奇怪的影响。

I cannot fathom why, but it seems like such multi-touch gestures, such as pinching, have a relatively odd effect on non-native applications. 我无法理解为什么,但似乎这样的多点触摸手势,如捏,对非本机应用程序有相对奇怪的影响。

The only thing I can suggest is using Objective-C and getting to work on porting your application to run as an app on the iDevice. 我唯一能建议的是使用Objective-C并开始将应用程序移植到iDevice上作为应用程序运行。 This will remove the problems you are having, but it will not rid you of the issue that you are trying to develop a web app. 这将消除您遇到的问题,但它不会解决您尝试开发Web应用程序的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM