wx.onMouseMove(function callback)
监听鼠标移动事件
参数
function callback
鼠标移动事件的回调函数
参数
Object res
属性 | 类型 | 说明 |
x | number | 事件触发时鼠标所在的位置横坐标 |
y | number | 事件触发时鼠标所在的位置纵坐标 |
movementX | number | 鼠标横坐标偏移量 |
movementY | number | 鼠标纵坐标偏移量 |
timeStamp | number | 事件触发时的时间戳 |
The translations are provided by WeChat Translation and are for reference only. In case of any inconsistency and discrepancy between the Chinese version and the English version, the Chinese version shall prevail.Incorrect translation. Tap to report.