
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
@yandeu/tap
Advanced tools
🖱️ Handling of user interactions such as mouse, touch and pointer events. (Inspired by tapjs)
Handling of user interactions such as mouse, touch and pointer events.
(Inspired by tapjs)
npm install @yandeu/tap
https://unpkg.com/@yandeu/tap/umd/tap.min.js
// print the current version
console.log('Tap VERSION: ', Tap.VERSION)
// the element you want to listen for events (your canvas for example)
const el = document.getElementById('myCanvas')
// instantiate
const tap = new Tap(el)
// listen on down
tap.on.down(({ position, event }) => {
console.log('down', position, event)
})
// listen on move
tap.on.move(({ position, event, dragging }) => {
console.log('move', position, event)
const isDragging = dragging
console.log('Is pointer down while moving?', isDragging)
})
// listen on up
tap.on.up(({ position, event }) => {
console.log('up:', position, event)
})
// listen on down once
tap.once.down(({ position, event }) => {
console.log('down', position, event)
})
// check if down
tap.isDown
// get current position
tap.currentPosition
// get last position
tap.lastPosition
// is pointer lock available
tap.pointerLock.available
// is pointer locked
tap.pointerLock.isLocked
// listen for pointer lock change once (returns a Promise)
tap.pointerLock.onceChange().then(event => {
console.log(event)
})
// request pointer lock (returns a Promise)
tap.pointerLock.request().then(event => {
console.log(event)
})
// request pointer lock (returns a Promise)
tap.pointerLock.exit().then(event => {
console.log(event)
})
// check if paused
tap.isPaused
// pause all events (except .once())
tap.pause()
// resume all events
tap.resume()
// destroy all events once you are done
tap.destroy()
Package | Description |
---|---|
audio | 🎵 Audio library for the Web Audio API. |
keyboard | ⌨️ Handling of keyboard events. |
tap | 🖱️ Handling of user interactions such as mouse, touch and pointer events. |
Join the enable3d discussions!
FAQs
🖱️ Handling of user interactions such as mouse, touch and pointer events. (Inspired by tapjs)
The npm package @yandeu/tap receives a total of 90 weekly downloads. As such, @yandeu/tap popularity was classified as not popular.
We found that @yandeu/tap 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
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.