[PR #5362] [Enhancement] Disable Sidebar Tooltip on Touchscreen Device #12950

Closed
opened 2026-04-10 21:43:07 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/actualbudget/actual/pull/5362

State: closed
Merged: Yes


This is an addition to my previous PR #5352 that only checks the hover media query:

window.matchMedia('(hover: none)').matches

but this does not work for some touchscreen devices (i.e. newer Samsung phones/tablets)

however this does work

window.matchMedia('(pointer: coarse)').matches

Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pointer#coarse

**Original Pull Request:** https://github.com/actualbudget/actual/pull/5362 **State:** closed **Merged:** Yes --- <!-- Thank you for submitting a pull request! Make sure to follow the instructions to write release notes for your PR — it should only take a minute or two: https://github.com/actualbudget/docs#writing-good-release-notes. Try running yarn generate:release-notes *before* pushing your PR for an interactive experience. --> This is an addition to my previous PR #5352 that only checks the hover media query: ```ts window.matchMedia('(hover: none)').matches ``` but this does not work for some touchscreen devices (i.e. newer Samsung phones/tablets) however this does work ```ts window.matchMedia('(pointer: coarse)').matches ``` Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pointer#coarse
GiteaMirror added the pull-request label 2026-04-10 21:43:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#12950