Skip to content
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

Fix context menu rendering bug #25

Merged
merged 1 commit into from
Feb 3, 2024
Merged

Conversation

waveyboym
Copy link
Member

@waveyboym waveyboym commented Feb 3, 2024

This fix will prevent the context menu from showing up due to random key presses.
More checks were introduced to prevent the context menu from activating. Before the context menu would activate if a song was selected and the right mouse button was clicked. Now the context menu itself has to not have a position of (0,0) in order to render also:
state.songMenuToOpen && state.co_ords.xPos != 0 && state.co_ords.yPos != 0

ref issue: #21

@waveyboym waveyboym added the ui/ux This pr/issue addresses a ui/ux issue or involves a ui/ux change label Feb 3, 2024
@waveyboym waveyboym self-assigned this Feb 3, 2024
@waveyboym waveyboym merged commit 09b4a1e into main-app-dev Feb 3, 2024
@waveyboym waveyboym deleted the context-menu-patch branch February 3, 2024 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui/ux This pr/issue addresses a ui/ux issue or involves a ui/ux change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant