wx.onMouseMove(function listener)
功能描述
监听鼠标移动事件
参数
function listener
鼠标移动事件的监听函数
参数
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.