From d8aab59d4bf24fbededbcd3c4199f05593fcdcf3 Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Sat, 4 Jun 2016 13:45:33 +0200 Subject: [PATCH] Trying to fix a bug some people is experiencing with the sensitivity option --- .../kde/kdeconnect/Plugins/MousePadPlugin/MousePadPlugin.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/kde/kdeconnect/Plugins/MousePadPlugin/MousePadPlugin.java b/src/org/kde/kdeconnect/Plugins/MousePadPlugin/MousePadPlugin.java index b36e998e..eb5bf4e7 100644 --- a/src/org/kde/kdeconnect/Plugins/MousePadPlugin/MousePadPlugin.java +++ b/src/org/kde/kdeconnect/Plugins/MousePadPlugin/MousePadPlugin.java @@ -84,6 +84,10 @@ public class MousePadPlugin extends Plugin { public void sendMouseDelta(float dx, float dy, float sensitivity) { NetworkPackage np = new NetworkPackage(PACKAGE_TYPE_MOUSEPAD_REQUEST); + if (sensitivity <= 0.0001f) { + sensitivity = 1.0f; + } + np.set("dx", dx*sensitivity); np.set("dy", dy*sensitivity);