@galacean/pointer-polyfill
v0.0.1
Published
PointerEvent Polyfill for Galacean
Downloads
3
Maintainers
Keywords
Readme
Pointer Event Polyfill
This polyfill can solve the problem of onPointerXXX
callback exceptions in the Galacean 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 @galacean/pointer-polyfill
import
import "@galacean//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.