xPlaneGizmo, yPlaneGizmo, zPlaneGizmo Unable to Invoke dragBehavior.validateDrag

I’ve noticed a behavior discrepancy in Babylon.js’s PositionGizmo. For testing purposes, I’ve set the validateDrag function of both yGizmo and yPlaneGizmo to:

() => { return false; }

While this effectively restricts movement for yGizmo, it does not for yPlaneGizmo.

You can witness this inconsistent behavior in the playground here:

Specifically, while yGizmo respects the validateDrag function and disallows movement, yPlaneGizmo disregards it and continues to allow movement.

I’d appreciate any insights or solutions regarding this issue. Thank you.

The validateDrag function wasn’t being called, it was an oversight, thanks for letting us know :slight_smile: A fix is in: Call the validateDrag function on planeDragGizmo by carolhmj · Pull Request #14150 · BabylonJS/Babylon.js (github.com)

1 Like

Thank you so much for the prompt fix! I’ve tested it in the latest version and can confirm that the issue is resolved.

1 Like