首页 > 其他 > 详细

Electron mouse events 参数解析

时间:2018-08-27 12:08:29      阅读:323      评论:0      收藏:0      [点我收藏+]

1、https://electronjs.org/docs/api/web-contents

2、通常用:

   monitorEvents(document.body, ‘mouse‘)  检测正常的值:

  技术分享图片

 

For mouse events, the event object also have following properties:

x Integer (required)  // left值

y Integer (required)  // top值

button String - The button pressed, can be left, middle, right.

globalX Integer   //对应一处的width

globalY Integer   //对应一处的height

movementX Integer

movementY Integer

clickCount Integer

 

Electron mouse events 参数解析

原文:https://www.cnblogs.com/cbugs/p/9541325.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!