From e88cf4c8c88c63eef66fcc8bc00e27903562a49d Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 26 Jul 2019 18:47:56 +0200 Subject: mouse: use discrete axis event if available This improves the scroll experience with certain devices --- terminal.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index c6227d26..1971d3f4 100644 --- a/terminal.h +++ b/terminal.h @@ -288,6 +288,9 @@ struct terminal { int last_button; struct timeval last_time; + + /* We used a discrete axis event in the current pointer frame */ + bool have_discrete; } mouse; struct coord cursor; -- cgit v1.3