Skip to content

This PR fixes a UI delay issue where the setInstrument and start sidebars only expand or contract after the mouse leaves the note value block expand/collapse button. #4666

Closed
Prince9g wants to merge 1 commit intosugarlabs:masterfrom
Prince9g:prince

Conversation

@Prince9g
Copy link

Description:

This PR fixes a UI delay issue where the setInstrument and start sidebars only expand or contract after the mouse leaves the note value block expand/collapse button. The new behavior ensures that the sidebar updates happen immediately on button click.

Changes Made:

Added onclick event listeners to collapseButtonBitmap and expandButtonBitmap inside _generateCollapseArtwork().

On click, the block's collapsed state updates and the visual state is refreshed with show().

Calls blocks.expandOrCollapseSidebars() (if defined) to update the sidebar instantly.

Expected Behavior:

When the user clicks the expand or collapse button on a note value block, the start and setInstrument sidebars now update immediately, without needing mouse movement.

Issue Reference:
Fixes issue: "Late expansion and contraction of setInstrument and start sidebar when note value blocks are expanded or contracted."

…and start sidebar when note value blocks are expanded or contracted
@github-actions
Copy link
Contributor

✅ All Jest tests passed! This PR is ready to merge.

@Ubayed-Bin-Sufian
Copy link
Contributor

@prince9 Thanks for attempting.

  1. Please decrease the word count of PR title.
  2. Please decrease the word count of commit message.
  3. Refer to issue in this format "FIXES #ISSUE_NUMBER"
  4. Please provide a BEFORE and AFTER screen recording.

This way maintainers can easily understand your intent.

@omsuneri
Copy link
Member

@Prince9g which issue i was unable to find any !! :(

@github-actions
Copy link
Contributor

This pull request has been open for more than 60 days without any activity. It will be closed in 3 days unless the stale label is removed or commented on.

@github-actions github-actions bot added the Stale label Jun 30, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2025

Closed pull request due to inactivity for more than 63 days.

@github-actions github-actions bot closed this Jul 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants