Skip to content

Fix stringing issue on some touchpads#37

Open
JM1705 wants to merge 1 commit intoWazzaps:masterfrom
JM1705:master
Open

Fix stringing issue on some touchpads#37
JM1705 wants to merge 1 commit intoWazzaps:masterfrom
JM1705:master

Conversation

@JM1705
Copy link

@JM1705 JM1705 commented May 8, 2024

When the input on the touchpad "jumped" (when I lifted and moved my finger) the line would still be drawn between the points.

I implemented datetime timedelta to fix this, but the "MAX_REFRESH_INTERVAL" value might need to be adjusted for other touchpads.

With my ~80hz touchpad the 0.04 value worked well for reference.

When the input on the touchpad "jumped" (when I lifted and moved my finger) the line would still be drawn between the points. 

I implemented datetime timedelta to fix this, but the "MAX_REFRESH_INTERVAL" value might need to be adjusted for other touchpads.
@liuhang-123
Copy link

can you make one for windows? evdev is not available on windows.

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