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

feat: disable "mouse hover focuses PCB viewer" by default #141

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kom-senapati
Copy link

  • The default behavior for mouse hover focusing the PCB viewer has been disabled.
  • Added a new focusOnHover prop to allow enabling this feature if required.

/claim #139
Fixes #139

…h prop focusOnHover

- The default behavior for mouse hover focusing the PCB viewer has been disabled.
- Added a new `focusOnHover` prop to allow enabling this feature if required.
Copy link

vercel bot commented Jan 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
pcb-viewer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 22, 2025 6:54am

Copy link
Contributor

@seveibar seveibar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think you fixed the right behavior, to test, make sure that you create a story that has the prop, then test hovering over the PCB

Currently when you hover over the pcb viewer it refocuses the page, adjusting the scroll position. We want to disable that behavior when focusOnHover={false | undefined}

@kom-senapati
Copy link
Author

i don't think you fixed the right behavior, to test, make sure that you create a story that has the prop, then test hovering over the PCB

Currently when you hover over the pcb viewer it refocuses the page, adjusting the scroll position. We want to disable that behavior when focusOnHover={false | undefined}

I thought its like focusOnHover={false | true | undefined}
When it's true it works else focus on hover.

See in deployment it doesn't focus the traces which can be turned on.

@seveibar
Copy link
Contributor

seveibar commented Jan 19, 2025

@kom-senapati i can show this on stream tomorrow but the issue involves focusing the pcb viewer on hover

meaning the page is adjusting the scroll position to focus the pcb viewer

the scroll position is changing, this is the thing we want to disable (nothing to do with traces etc.)

@kom-senapati
Copy link
Author

@seveibar check this too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disable the "mouse hover focuses pcb viewer" feature by default, allow enabling with prop focusOnHover
2 participants