
Security News
Oxlint Introduces Type-Aware Linting Preview
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
@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 345 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
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.