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

**URL:** <https://forum.babylonjs.com/t/updated-babylon-now-getting-unable-to-preventdefault-inside-passive-event-listener-invocation-error/31842>\
**Category:** Questions\
**Created:** [July 1, 2022, 12:32pm UTC](https://forum.babylonjs.com/t/updated-babylon-now-getting-unable-to-preventdefault-inside-passive-event-listener-invocation-error/31842 "2022-07-01T12:32:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Regit](https://avatars.discourse-cdn.com/v4/letter/r/6a8cbe/32.png) [@Regit](https://forum.babylonjs.com/u/Regit)\
**Post date:** [July 1, 2022, 12:32pm UTC](https://forum.babylonjs.com/t/updated-babylon-now-getting-unable-to-preventdefault-inside-passive-event-listener-invocation-error/31842/1 "2022-07-01T12:32:19Z")

</div>

Hello,

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

```auto
_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).

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [July 1, 2022, 3:05pm UTC](https://forum.babylonjs.com/t/updated-babylon-now-getting-unable-to-preventdefault-inside-passive-event-listener-invocation-error/31842/2 "2022-07-01T15:05:08Z")

</div>

cc @PolygonalSun

---

<div class="post-metadata">

**Author:** ![PolygonalSun](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/polygonalsun/32/2704_2.png) [@PolygonalSun](https://forum.babylonjs.com/u/PolygonalSun)\
**Post date:** [July 1, 2022, 10:40pm UTC](https://forum.babylonjs.com/t/updated-babylon-now-getting-unable-to-preventdefault-inside-passive-event-listener-invocation-error/31842/3 "2022-07-01T22:40:30Z")

</div>

Lemme take a look and see what’s going on

---

<div class="post-metadata">

**Author:** ![PolygonalSun](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/polygonalsun/32/2704_2.png) [@PolygonalSun](https://forum.babylonjs.com/u/PolygonalSun)\
**Post date:** [July 1, 2022, 11:14pm UTC](https://forum.babylonjs.com/t/updated-babylon-now-getting-unable-to-preventdefault-inside-passive-event-listener-invocation-error/31842/4 "2022-07-01T23:14:44Z")

</div>

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)](https://github.com/BabylonJS/Babylon.js/pull/12703)

---

<div class="post-metadata">

**Author:** ![PolygonalSun](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/polygonalsun/32/2704_2.png) [@PolygonalSun](https://forum.babylonjs.com/u/PolygonalSun)\
**Post date:** [July 5, 2022, 5:24pm UTC](https://forum.babylonjs.com/t/updated-babylon-now-getting-unable-to-preventdefault-inside-passive-event-listener-invocation-error/31842/5 "2022-07-05T17:24:50Z")

</div>

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