Default is not prevented after interacting with gizmo

Hello,

i think i found some issue. Steps to reproduce:

  • open this PG
  • scroll, notice that event’s default is prevented (page is not scrolled)
  • interact with gizmo - drag the mesh
  • scroll, notice that event’s default is NOT prevented (page is scrolled)

Hi @ludevik

Thank you for reporting the issue! I’ll try to find a fix very soon

I noticed same issue when i work with PointerDragBehavior. It happens when pointerDragBehavior.detachCameraControls = true; . It seems like this behavior is not reattaching camera controls or at least not correctly.

Indeed! Looks like the Camera is not properly reattached.

PR is live prevent default for camera attach when drag is finished by CedricGuillemet · Pull Request #7594 · BabylonJS/Babylon.js · GitHub