Skip to content

core: treat touch as click #788

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

core: treat touch as click #788

wants to merge 1 commit into from

Conversation

ojafuenf
Copy link

@ojafuenf ojafuenf commented May 30, 2025

This treats touch input events as (left) clicks.

Currently the onClick implementation does not care which (mouse) button is used to click on an element. So it might be acceptable to remove the include and use a fixed value (0 or 272). However, this might lead to problems if onClick ever learns to distinguish between different clicks.

This only works for "real" finger touch inputs, (tablet) pen touches are translated to pointer move events, but the tab event does not seem to reach hyprlock.

Tested on a surface go 1 and a thinkpad x1 yoga gen1 with arch.

@vaxerski vaxerski requested a review from PaideiaDilemma May 31, 2025 13:01
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.

1 participant