8.0.0 • Published 19 days ago
anys-web-plugin-monitor-mouse-event v8.0.0
AnysMonitorMouseEventPlugin
Monitor mouse event.
Install
npm i anys-web-plugin-monitor-mouse-event
<script src="https://unpkg.com/anys-web-plugin-monitor-mouse-event"></script>
Usage
import { AnysMonitorMouseEventPlugin } from 'anys-web-plugin-monitor-mouse-event';
<script>
const { AnysMonitorMouseEventPlugin } = window.anys;
const anys = new Anys({
plugins: [AnysMonitorMouseEventPlugin],
});
</script>
Options
- mouse: !isSupportTouch, total switch, when
false
all options items will not work - click: true,
- mousemove: false,
- mousedown: false,
- mouseup: false,
- wheel: false,
- contextmenu: false,
const anys = new Anys({
mouse: false,
});
Log
{
type: 'click' | 'mousemove' | 'mousedown' | 'mouseup' | 'contextmenu',
time: Date.now(),
detail: {
e: getPath(target),
w: innerWidth,
h: innerHeight,
x: pageX,
y: pageY,
button,
},
}
{
type: 'wheel',
time: Date.now(),
detail: {
e: getPath(target),
deltaX,
deltaY,
deltaZ,
mode: deltaMode,
},
}
8.0.0
19 days ago
7.0.0
2 months ago
6.4.0
5 months ago
6.3.0
5 months ago
6.2.0
5 months ago
6.1.1
6 months ago
6.0.0
6 months ago
5.0.3
6 months ago
5.0.2
7 months ago
5.0.0
7 months ago
4.0.0
7 months ago
3.1.0
8 months ago
3.0.2
8 months ago
3.0.1
8 months ago
3.0.0
8 months ago
2.0.2
8 months ago
2.0.0
8 months ago
1.4.0
8 months ago
1.2.0
9 months ago
1.1.3
9 months ago
1.1.2
9 months ago
1.1.0
9 months ago
1.0.1
9 months ago