0.0.1 • Published 2 years ago

@galacean/pointer-polyfill v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Pointer Event Polyfill

image

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.

0.0.1

2 years ago