Skip to content

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

Description

@eyworldwide

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions