Skip to content

TransformControls: Add viewport support.#33451

Merged
Mugen87 merged 1 commit intomrdoob:devfrom
Mugen87:dev5
Apr 23, 2026
Merged

TransformControls: Add viewport support.#33451
Mugen87 merged 1 commit intomrdoob:devfrom
Mugen87:dev5

Conversation

@Mugen87
Copy link
Copy Markdown
Collaborator

@Mugen87 Mugen87 commented Apr 23, 2026

Fixed #28856.

Description

The PR adds a viewport property to TransformControls so the controls work when the application makes use of sub-rect rendering.

The change is small and the pointer coordinates math not something we want to expose to users. So it seems appropriate to make this small enhancement to TransformControls. The change is fully backwards-compatible and does not affect existing usage.

@Mugen87 Mugen87 merged commit 7499850 into mrdoob:dev Apr 23, 2026
9 checks passed
@Mugen87 Mugen87 added this to the r185 milestone Apr 23, 2026
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.

Consider providing an interface with a custom calculated mouse relative information in the transformControls

1 participant