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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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
Copy link

✅ 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 !! :(

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.

3 participants