
Security News
/Research
npm Phishing Email Targets Developers with Typosquatted Domain
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.
@livelybone/mouse-events
Advanced tools
Some complex mouse events, such as dragMove event with deltaX/deltaY relative to mousedown/touchstart, mouse wheel with good compatibility ...
pkg.module supported
, which means that you can apply tree-shaking in you project
Some complex mouse events, such as dragMove event with deltaX/deltaY relative to mousedown/touchstart, mouse wheel with good compatibility ...
https://github.com/livelybone/mouse-events.git
https://github.com/livelybone/mouse-events#readme
you can see the usage by run the example of the module, here is the step:
git clone https://github.com/livelybone/mouse-events.git
cd your-module-directory
npm i
(use taobao registry: npm i --registry=http://registry.npm.taobao.org
)npm run dev
http://127.0.0.1:3000/examples/test.html
) in your browsernpm i -S @livelybone/mouse-events
umd
bundleMouseEvents
See what method or params you can use in index.d.ts
import { DragMove, Utils, MouseWheel, DragMoveEvent } from '@livelybone/mouse-events'
const el = document.getElementById('el')
let removeListener
removeListener = MouseWheel.bind(el, (ev: MouseWheel.CustomWheelEvent) => {
// ...
})
removeListener()
removeListener = DragMove.bind(el, (ev: DragMoveEvent) => {
// ...
})
removeListener()
console.log(Utils.$isMobile)
removeListener = Utils.$addListener(el, 'scroll', ev => {
// ...
})
removeListener()
Use in html, see what you can use in CDN: unpkg
<-- use what you want -->
<script src="https://unpkg.com/@livelybone/mouse-events/lib/umd/<--module-->.js"></script>
Or,see what you can use in CDN: jsdelivr
<script src="https://cdn.jsdelivr.net/npm/@livelybone/mouse-events/lib/umd/<--module-->.js"></script>
FAQs
Some complex mouse events, such as dragMove event with deltaX/deltaY relative to mousedown/touchstart, mouse wheel with good compatibility ...
The npm package @livelybone/mouse-events receives a total of 563 weekly downloads. As such, @livelybone/mouse-events popularity was classified as not popular.
We found that @livelybone/mouse-events demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.
Security News
Knip hits 500 releases with v5.62.0, refining TypeScript config detection and updating plugins as monthly npm downloads approach 12M.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.