interact.js
interact.js copied to clipboard
No mention of @interactjs/pointer-events in the npm streamlined installation part of the docs
Expected behavior
@interactjs/pointer-events should be listed in the npm-streamlined part of the docs.
Actual behavior
@interactjs/pointer-events is not listed. It is needed for pointerEvent listeners such as this one:
interact(target).on('hold', function (event) {
console.log(event.type, event.target)
})
Solution
npm install @interactjs/pointer-events
import '@interactjs/pointer-events';
System configuration
interact.js version: 1.10.27
Browser name and version: Firefox 126.0 (64-bit)
Operating System: Windows 10