Open robinschreiner opened 3 years ago
@robinschreiner thanks for reaching out.
I believe this refers to the pointer event handlers included by ThreeJs TrackballControls (a dependency of Globe.gl to handle the globe rotation/zoom interactions).
You can see the events being added here, and indeed they are not passive. It seems intentional as the handlers perform preventDefault
operations, but I can't fully speak for the implementation in that lib.
https://github.com/mrdoob/three.js/blob/696d7836d1fc56c4702a475e6991c4adef7357f4/examples/jsm/controls/TrackballControls.js#L731-L736
Describe the bug GlobeGL is not using passive event listeners. This affects the page's scroll performance and also throws errors in lighthouse reports.
To Reproduce Steps to reproduce the behavior:
Expected behavior Using passive event listeners
Screenshots