微信小程序开发之拖拽 image 触摸事件监听

需要做个浮在scroll-view之上的button.尝试了一下. 上GIF: 1.index.wxml 简单的设置一张图片,添加触摸事件监听.点击事件监听.根据触摸事件获取X Y位移,设置为image的位置 < image class= "image-style" src= "../../images/sand.png" bindtap= "ballClickEvent" style= "bot
相关文章
相关标签/搜索