diff --git a/libs/flake/KoPointerEvent.cpp b/libs/flake/KoPointerEvent.cpp --- a/libs/flake/KoPointerEvent.cpp +++ b/libs/flake/KoPointerEvent.cpp @@ -26,6 +26,7 @@ #include #include #include +#include class Q_DECL_HIDDEN KoPointerEvent::Private { @@ -186,7 +187,7 @@ qreal KoPointerEvent::tangentialPressure() const { if (d->tabletEvent) - return d->tabletEvent->tangentialPressure(); + return std::fmod((d->tabletEvent->tangentialPressure() - (-1.0)) / (1.0 - (-1.0)), 2.0); else return 0.0; }