Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.