Skip to content
New issue

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

Polyline在手机端无法触发click #134

Open
luyueming123 opened this issue Aug 22, 2019 · 0 comments
Open

Polyline在手机端无法触发click #134

luyueming123 opened this issue Aug 22, 2019 · 0 comments

Comments

@luyueming123
Copy link

luyueming123 commented Aug 22, 2019

click事件在pc端是可以的,但是手机端无效。百度地图手机端默认的时间是拖动,屏蔽了其他事件,



{
data.polygonArray.map((item,index) => (
<Point key={'pipeline'+polylineIndex+index} lng={item.lng} lat={item.lat} />
))
}
<Events
click={(type, target, point, pixel, overlay)=>{
console.log('click')
this.pipelineClick(data,type)}
}
/>

这个click就不会执行

有没有解决方案呢

@luyueming123 luyueming123 changed the title 自定义覆盖物手机端无法触发click问题 Polyline在手机端无法触发click Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant