Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 513 Bytes

wx.md

File metadata and controls

23 lines (19 loc) · 513 Bytes

Support WeChat applet

Since there is no concept of dom element in the ** applet **, we need to manually receive the event object of the touch event through the catchEvent method to identify

<view
   @touchstart="at.catchEvent"
   @touchmove="at.catchEvent"
   @touchend="at.catchEvent"
   @touchcancel="at.catchEvent">
</view>
const at = new AnyTouch()
{
     onload(){
         at.on('press', onPress);
     }
}

🚀 back to directory