hybrid-app - weex swipe event does not fire in iOS but can fire in Android - Stack Overflow
世界只因有你
世界只因有你 2017-07-01 09:12:29
0
1
1509

weex swipe event does not trigger in iOS, but can trigger in Android

code show as below:

<p class="room-wrapper">
  <p class="room" v-for="item in 4" v-on:swipe="onSwipe($event,item)">
    <text class="room-text">Room {{item}}</text>
  </p>
</p>

onSwipe(event, item){
    console.log('>>>>>>>>>>')
    console.log(event)
    console.log(event.direction)
  },
世界只因有你
世界只因有你

reply all(1)
某草草

It’s not that it’s not triggered in iOS, it’s that you can’t use the console to print in iOS

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template