Openlayers 3无法触发Android手机上的点击事件 [英] Openlayers 3 unable to fire click event on Android mobile phone

查看:328
本文介绍了Openlayers 3无法触发Android手机上的点击事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

经过数小时的研究和测试后,我在使用Chrome的Android手机设备上的Openlayers 3中发生行为变化。问题可能在这里看到: http://openlayers.org/en /latest/examples/popup.html?q=popup 。在Chrome中尝试并在Android手机中打开网页。然后尝试点击地图。我能够始终如一地收到一个弹出窗口的唯一方法就是用手指触摸手机,短时间轻触屏幕。以下是我所知道的:




  • 适用于Apple移动设备,台式机,Android手机Firefox和Android平板电脑Chrome浏览器

  • 无法在Android手机上使用手机

  • 点击并双击事件不起作用
  • moveend event does fire

  • 上周工作良好



证据指向Android手机上的Chrome问题,但我不确定。有没有人遇到过这个问题?你是如何解决这个问题的?

解决方案

是的,这是一个已知的问题,请参阅这里的讨论细节: https://github.com/openlayers/openlayers/pull/6778


After hours of research and testing, I am experiencing a change in behavior in Openlayers 3 on Android phone devices using Chrome. The problem may be seen here: http://openlayers.org/en/latest/examples/popup.html?q=popup. Try and open the page in an Android phone in Chrome. Then try to click the map. The only way I am able to consistently receive a popup is to kind of whip my finger at the phone, touching the screen just minimally for a short period of time. Here is what I know:

  • Works on Apple mobile devices, desktops, Android phone Firefox, and Android tablet Chrome
  • Doesn't work on Android Chrome on a phone
  • Click and double click events do not work
  • moveend event does fire
  • Working fine last week

The evidence points to a Chrome issue on Android phones but I am unsure. Has anyone else experienced this problem? How did you resolve this? Thanks in advance.

解决方案

Yes this is a known issue please see discussion here for details: https://github.com/openlayers/openlayers/pull/6778

这篇关于Openlayers 3无法触发Android手机上的点击事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆