-
Notifications
You must be signed in to change notification settings - Fork 136
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
add on-long-touch option #534
base: master
Are you sure you want to change the base?
Conversation
@@ -144,7 +158,7 @@ static void touch_handle_up(void *data, struct wl_touch *wl_touch, | |||
wl_list_for_each(notif, &state->notifications, link) { | |||
if (hotspot_at(¬if->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); |
There was a problem hiding this comment.
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?
*long-press-duration*=_time_ | ||
Specifies the cutoff time (in milliseconds) for a press to be | ||
considered a long press. | ||
|
||
Default: 500 |
There was a problem hiding this comment.
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.
There are much less input options when using a touchscreen, so hopefully this should somewhat bridge the gap in experience.