You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by 陈泽峰 <ch...@ymt360.com> on 2017/07/24 07:57:38 UTC
touch event behave differently between android and ios
hi
in my project ,i have a <image> in a <list> like this
<list class="fill list" v-if="list != null && list.length != 0">
<cell class="vertical">
<image src="http://www.account.ymt.com/fe/auditform/images/xianyu/banner1.webp"
class="fill top_banner"></image>
<image src="http://www.account.ymt.com/fe/auditform/images/xianyu/banner2.webp"
class="fill second_banner" @touchend="clickProduct"></image>
</cell>
and i use the touchevent in this way
clickProduct(event){
if (event.changedTouches[0].pageY > 300 && event.changedTouches[0].pageY < 500) {
pageY on android counts from the top of <image> ,but it's the interval to the top of the page on ios.
so it's seems like a problem of android sdk?
i'm using version 0.10.0 on android and 0.10.3 on ios ,i've no idea if it's a known issue or it's fixed at some lately version