search

Home  >  Q&A  >  body text

hybrid-app - weex swipe event does not fire in iOS but can fire in Android - Stack Overflow

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)
  },
世界只因有你世界只因有你2727 days ago1523

reply all(1)I'll reply

  • 某草草

    某草草2017-07-01 09:14:29

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

    reply
    0
  • Cancelreply