Skip to content

Fix mobile menu toggle on touch devices#589

Open
AdityaSharma-Git3207 wants to merge 1 commit intowagtail:mainfrom
AdityaSharma-Git3207:fix/mobile-menu-toggle-touch
Open

Fix mobile menu toggle on touch devices#589
AdityaSharma-Git3207 wants to merge 1 commit intowagtail:mainfrom
AdityaSharma-Git3207:fix/mobile-menu-toggle-touch

Conversation

@AdityaSharma-Git3207
Copy link

Fixes #586

Fixes the mobile menu toggle not closing on touch devices.

The toggle was bound to mousedown, which doesn’t reliably fire for subsequent taps on mobile browsers. This meant the menu could be opened but not closed again, leaving the navigation stuck open (and keeping page scroll locked).

This switches the event handler to pointerup for more reliable touch interaction.

Signed-off-by: AdityaSharma-Git3207 <aadee.bharat@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mobile menu cannot be closed on touch devices.

1 participant