Support passive event listeners in controls

Description of the feature

Since Chrome 51 and Firefox 49, passive event listeners have been supported. Marking the listeners in the controls as passive should greatly help perceived performance. A polyfill is available in the link if backwards-compatibility is important.

EDIT: I should note that this disables the ability to call preventDefault(). So listeners that call preventDefault() cannot be passive.

Three.js version

All

Author: Fantashit

1 thought on “Support passive event listeners in controls

Comments are closed.