Commit a71d091e authored by Peter Hutterer's avatar Peter Hutterer

tablet: add a comment explaining why we adjust the pressure offset downwards

Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent c5865f3e
......@@ -1271,6 +1271,11 @@ detect_pressure_offset(struct tablet_dispatch *tablet,
offset = pressure->value - pressure->minimum;
/* If we have an event that falls below the current offset, adjust
* the offset downwards. A fast contact can start with a
* higher-than-needed pressure offset and then we'd be tied into a
* high pressure offset for the rest of the session.
*/
if (tool->has_pressure_offset) {
if (offset < tool->pressure_offset)
tool->pressure_offset = offset;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment