@oasis-engine/pointer-polyfill
v0.0.12
Published
PointerEvent Polyfill for Oasis
Downloads
31
Keywords
Readme
Pointer Event Polyfill
This polyfill can solve the problem of onPointerXXX
callback exceptions in the Oasis script life cycle due to some browsers not supporting PointerEvent
.
Usage
Install the npm package (please use the latest version of the package)
npm install @oasis-engine/pointer-polyfill
import
import "@oasis-engine/pointer-polyfill";
QA
Q:Need to judge whether PointerEvent
is supported before importing?
A:Unnecessary.
Q.Why not write directly into the engine?
A:Pointer is the future, so this adaptation may not be needed in the near future.