interact.js icon indicating copy to clipboard operation
interact.js copied to clipboard

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

Open WindySpoon opened this issue 1 year ago • 0 comments

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

WindySpoon avatar May 29 '24 05:05 WindySpoon