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

Menubar: Viewport panning on zoom when focusing menu items #5722

Open
kaspernowak opened this issue May 10, 2024 · 1 comment
Open

Menubar: Viewport panning on zoom when focusing menu items #5722

kaspernowak opened this issue May 10, 2024 · 1 comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@kaspernowak
Copy link

kaspernowak commented May 10, 2024

Describe the bug

When using the Menubar component from PrimeVue on a MacBook Air M1 in Chrome, zooming in on the webpage and interacting with the menu (either by clicking or hovering over items) causes the viewport to pan unexpectedly to the menu item. This behavior disrupts the user experience, as it forces the viewport to jump around when navigating the menu.

Screen recording of the issue:
https://github.com/primefaces/primevue/assets/54978466/99fab5d6-cb57-457c-8352-4741830db623

Reproducer

https://stackblitz.com/edit/9rkjcs?file=src%2FApp.vue

PrimeVue version

3.52.0

Vue version

3.x

Language

ALL

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

  1. Open the application in Chrome on a MacBook Air M1.
  2. Zoom in to at least 200%.
  3. Interact with the Menubar component by clicking or hovering over its items.
  4. Observe that the viewport pans to center on the active menu item.

Expected behavior

The expected behavior is that the viewport should not pan or move unless initiated by the user. Interactions with the Menubar items should not cause the viewport to shift focus or jump to the menu item, especially when the site is zoomed in.

@kaspernowak kaspernowak added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label May 10, 2024
@kaspernowak
Copy link
Author

This issue is related to the following issues:
#5691
#5710

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant