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, MegaMenu: Submenu doesn't open on mouseover, when using touchscreen notebook with mouse #15570

Open
can-oezkan opened this issue May 15, 2024 · 0 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@can-oezkan
Copy link
Contributor

can-oezkan commented May 15, 2024

Describe the bug

When using a touchscreen notebook, the submenu's dont show on mouseover. You have to click the menu first.

I assume that this bug got introduced by this PR: #13447

The underlying issue seems to be this method, that gets called to determine if a mouseover should show the submenu or not:

public static isTouchDevice() {
return 'ontouchstart' in window || navigator.maxTouchPoints > 0;
}

Environment

angular business application

Reproducer

No response

Angular version

17.3.7

PrimeNG version

17.16.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

v20.12.2

Browser(s)

No response

Steps to reproduce the behavior

  1. Use a notebook with touchscreen
  2. use the touchpad or external mouse to hover over menu

Expected behavior

The submenu should show on mouseover when using a touchpad or external mouse.

@can-oezkan can-oezkan 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 15, 2024
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