Skip to content

galacean/polyfill-pointer-event

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pointer Event Polyfill

English | 简体中文


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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published