mouse: use discrete axis event if available

This improves the scroll experience with certain devices
This commit is contained in:
Daniel Eklöf 2019-07-26 18:47:56 +02:00
parent bb3e33948f
commit e88cf4c8c8
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 39 additions and 25 deletions

View file

@ -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;