Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Gizmo] Add a gizmoName parameter to the gizmo-move-start event #308

Open
eyworldwide opened this issue Oct 22, 2024 · 0 comments
Open

[Gizmo] Add a gizmoName parameter to the gizmo-move-start event #308

eyworldwide opened this issue Oct 22, 2024 · 0 comments
Labels
feature New feature

Comments

@eyworldwide
Copy link
Member

eyworldwide commented Oct 22, 2024

Is your feature request related to a problem? Please describe.

The gizmo-move-start event only includes an axisName parameter and does not indicate which gizmo triggered it.

this.engine.on("gizmo-move-start", (axisName) => {})

Describe the solution you'd like

Add a gizmoName parameter to the gizmo-move-start event to indicate which gizmo triggered it.

this.engine.on("gizmo-move-start", (axisName, gizmoName) => {
  if (gizmoName === GizmoEnum.Translation) {
    // do someting...
  }
})

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@eyworldwide eyworldwide added the feature New feature label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

No branches or pull requests

1 participant