Skip to content

Conversation

amirt-ms
Copy link
Contributor

I was recently working on a feature that utilized the PositionGizmo, adjusting its behavior based on whether the shift key was pressed. I was surprised to find that the pointer info wasn't available at the PositionGizmo level because the notification packet from the PointerDragBehavior isn't being passed through. This seems to have been done intentionally, though I'm not sure why.

This PR proposes that the notification packets for the specialized gizmo PointerDragBehavior be passed through their onDragObservables. This implementation keeps the Observer type dynamic to ease future development.

If the current behavior was intentional, I'm curious to know why.

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 22, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@amirt-ms amirt-ms marked this pull request as draft August 22, 2025 16:36
I use unkown here but can use any aswell.
@bjsplat
Copy link
Collaborator

bjsplat commented Aug 23, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 23, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 25, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 25, 2025

@amirt-ms amirt-ms marked this pull request as ready for review August 25, 2025 17:00
@bjsplat
Copy link
Collaborator

bjsplat commented Aug 25, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 25, 2025

@deltakosh deltakosh enabled auto-merge (squash) August 25, 2025 17:39
auto-merge was automatically disabled August 25, 2025 21:41

Head branch was pushed to by a user without write access

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 25, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 25, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 25, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Aug 25, 2025

@sebavan sebavan merged commit 7dffdaa into BabylonJS:master Aug 25, 2025
18 checks passed
@amirt-ms amirt-ms deleted the Pass-through-gizmo-drag-observer-messages branch August 26, 2025 00:34
sebavan pushed a commit that referenced this pull request Aug 27, 2025
My last PR (#17055) passed
through the `eventData`, but I forgot about the `eventState`. This PR
unpacks the `eventState` when notifying gizmo drag observers, along with
the `eventData`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants