Skip to content

Improvement for ButtonComponent press animation #97

@Nebuchadnezzar-I

Description

@Nebuchadnezzar-I

Hi,
The isPressed state in ButtonComponent updates the button’s transform instantly:

self.transform = self.isPressed && self.model.isInteractive
? .init(
  scaleX: self.model.animationScale.value,
  y: self.model.animationScale.value
)
: .identity

There's no animation around this, so the scaling feels a bit abrupt in the UI.
Just wanted to flag this in case it's worth smoothing out — thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions