Skip to content

Conversation

winstonma
Copy link
Contributor

This commit introduces several optimizations to the PanelButton, focusing on:

  • Reducing unnecessary UI updates by only updating label text when it changes.
  • Preventing potential memory leaks by properly destroying old ScrollingLabel instances before replacement.
  • Enhancing player switching behavior for a more predictable user experience.

This commit introduces several optimizations to the PanelButton, focusing on:
- Reducing unnecessary UI updates by only updating label text when it changes.
- Preventing potential memory leaks by properly destroying old ScrollingLabel instances before replacement.
- Enhancing player switching behavior for a more predictable user experience.
- Improving mouse event handling for middle and right clicks, and refining double-tap detection for left clicks.
@winstonma winstonma force-pushed the perf/panel-button-optimizations branch from 9d1645f to a5cf11f Compare October 15, 2025 14:07
Recreate ScrollingLabel components instead of just updating text property
to trigger proper width calculation and resize logic when content changes.
@winstonma winstonma force-pushed the perf/panel-button-optimizations branch from a5cf11f to 488dab4 Compare October 15, 2025 14:48
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.

1 participant