Skip to content

Conversation

@chayleaf
Copy link

There are much less input options when using a touchscreen, so hopefully this should somewhat bridge the gap in experience.

@chayleaf chayleaf marked this pull request as draft August 24, 2024 08:23
@chayleaf chayleaf marked this pull request as ready for review August 24, 2024 10:28
if (hotspot_at(&notif->hotspot, seat->touch.pts[id].x, seat->touch.pts[id].y)) {
struct mako_surface *surface = notif->surface;
notification_handle_touch(notif, &ctx);
notification_handle_touch(notif, &ctx, time - seat->touch.pts[id].time);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we already have a timer, I don't think we need to also handle the timeout here?

Comment on lines +71 to +75
*long-press-duration*=_time_
Specifies the cutoff time (in milliseconds) for a press to be
considered a long press.

Default: 500
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer not to expose a config option for this for now. We can always add in the future if needed, but if there's no clear use-case for it, I prefer not to add something which might tie our hands later.

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.

2 participants