-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix persistent zoom controls visibility after level selection (#756)
This PR addresses the issue where zoom controls remained visible after a selection from the ZoomLevelSelect. The PR removes the ButtonGroupLeft component, which was responsible for detecting mouse events and moving the `.button-group-left-container` during mouse hover. We now implement a simpler solution that primarily uses CSS and the `isSelectOpen` state. Fixes #747 ### Test plan: - tested regular and rapid interaction with the zoom controls to ensure smooth functionality - ensured that the zoom controls no longer appears when the cursor quickly crosses its area unintentionally - ensured that controls automatically hide after a selection from the ZoomLevelSelect |Before|After| |-|-| |<video src="https://github.com/user-attachments/assets/10922c47-c3b2-453f-b5cc-c9d5f1c64cc7" />|<video src="https://github.com/user-attachments/assets/a7fc3883-4d03-41f6-b447-289ca0236e80"/>|
- Loading branch information
Showing
3 changed files
with
30 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters