jxc
jxc
  • 发布:2018-01-04 11:22
  • 更新:2020-03-17 02:53
  • 阅读:3490

手机页面加载地图,双手操作放大,APP卡死

分类:HTML5+

测试手机:小米5
现象:手机页面加载地图,双手操作放大,APP卡死,APP卡住后,点击物理返回键是能返回的,但页面全部不能点击。
页面代码
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<link rel="stylesheet" href="css/mui.min.css">
<title></title>
</head>
<body>
<div class="mui-content mui-scroll-wrapper">
<div id="allmap" class="mui-scroll" style="width: 100%;height: 500px;"></div>
</div>
</body>
<script type="text/javascript" src="http://map.qq.com/api/js?v=2.exp" ></script>
</html>
<script type="text/javascript">

initMap() ;  
  
function initMap()  
{  
	var longitude = 106.550337 ;  
	var latitude = 29.494741 ;  
	window.map = new qq.maps.Map(document.getElementById("allmap"), {  
        center: new qq.maps.LatLng(latitude,longitude),  
        zoom:14  
    });  
}  

</script>

控制台的日志
正在建立手机连接...
正在同步手机端程序文件...
44 KB/s (4475 bytes in 0.097s)
正在启动HBuilder调试基座...
应用mui已启动...
A parser-blocking, cross site (i.e. different eTLD+1) script, http://open.map.qq.com/apifiles/2/4/82/main.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details. at http://map.qq.com/api/js?v=2.exp:9
A parser-blocking, cross site (i.e. different eTLD+1) script, http://open.map.qq.com/apifiles/2/4/82/main.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details. at http://map.qq.com/api/js?v=2.exp:9
Ignored attempt to cancel a touchcancel event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.

各位,帮忙看看怎么解决?谢谢!

发现用Hello H5+这个例子APP里的Map页面,放大太快的时候,也会卡住,不知道什么原因了

2018-01-04 11:22 负责人:无 分享
已邀请:
9***@qq.com

9***@qq.com - 蕾姆爷爷

我也是,是个严重的bug,只要两只手指上下距离长一点放大缩小就会造成app完全卡死。根本无法使用

9***@qq.com

9***@qq.com - 蕾姆爷爷

魅族很少卡死,小米经常

uikit

uikit

同样遇到此问题,不知道解决了没有,双指缩小 放大 卡死。

4***@qq.com

4***@qq.com

遇到同样的问题
http://ask.dcloud.net.cn/question/51596?notification_id-208299__rf-false
不止地图,在任何界面,两根手指横向滑动都会卡死,必须全部退出后重新进入。。。

1***@139.com

1***@139.com

我们的也出现这个问题,升级新本后原有正常的代码就把整个APP卡死了。

下雨咯

下雨咯 - 谢绝私聊

我也是,官方说修复的时限不确定

  • 2***@qq.com

    这个问题我有个解决方案


    2018-02-08 19:13

flake

flake

先留个名 下次再来看看解决没有。同样的问题

容若思雪

容若思雪 - 奥利给

Mark一下,确实存在。

  • 5***@qq.com

    更新下插件就好了


    2018-09-14 18:46

3***@qq.com

3***@qq.com - 不食人间烟火

同样遇到此问题,怎么破?有没有已经解决的?

DCloud_heavensoft

DCloud_heavensoft

前端地图性能不行,不要玩双指缩放。5+app用plus.map的原生地图。uni-app用map组件

该问题目前已经被锁定, 无法添加新回复