Updated Babylon now getting Unable to preventDefault inside passive event listener invocation. error


since I updated to the newest version I’m getting the error Unable to preventDefault inside passive event listener invocation.

_wheel	@	babylon.js:1
e.notifyObservers	@	babylon.js:1
e._processPointerMove	@	babylon.js:1
_onPointerMove	@	babylon.js:1
eval	@	babylon.js:1
e.notifyObservers	@	babylon.js:1
e._onInputChanged	@	babylon.js:1
o	@	babylon.js:1
_pointerWheelEvent	@	babylon.js:1

Everything seems to work fine still, but getting this error displayed everytime you zoom/use the wheel seems a bit odd.
If I do camera.attachControl(true) it doesn’t display the error (obviously, but just fyi).

cc @PolygonalSun

Lemme take a look and see what’s going on

Okay so here’s what I’ve found. Recently there was some logic fixed so that wheel events are correctly featured as passive events. Because preventDefault is ignored on passive events, this error is coming up when our camera wheel inputs execute code while having noPreventDefault set to false. This PR just removes that obsolete code: Camera: Remove code execute preventDefault for wheel events by PolygonalSun · Pull Request #12703 · BabylonJS/Babylon.js (github.com)


Just wanted to update and say this PR has been merged.