taye / interact.js

JavaScript drag and drop, resizing and multi-touch gestures with inertia and snapping for modern browsers (and also IE9+)
http://interactjs.io/
MIT License
12.19k stars 782 forks source link

No mention of @interactjs/pointer-events in the npm streamlined installation part of the docs #1042

Open WindySpoon opened 1 month ago

WindySpoon commented 1 month ago

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