You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

mouse_event_js

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mouse_event_js

鼠标的单击双击事件,右键双击事件的hook

1.0.4
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
0
Weekly downloads
 
Created
Source

mouse_event_js

鼠标的单击双击事件,右键双击事件的hook


支持npm安装

npm install mouse_event_js --save

useMouseEvent 鼠标左键点击和双击事件

参数说明类型默认值
el需要响应鼠标事件的html元素HTMLElement-
clickHandler单击事件的回调函数(event: MouseEvent)=>void-
dbClickHandler双击事件的回调函数(event: MouseEvent)=>void-



useMouseRightDbClick 鼠标右键双击事件

参数说明类型默认值
el需要响应鼠标事件的html元素HTMLElement-
callback双击事件的回调函数(e: MouseEvent) => void-

Keywords

鼠标

FAQs

Package last updated on 05 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts