2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-28 12:47:43 +00:00

Trying to fix a bug some people is experiencing with the sensitivity option

This commit is contained in:
Albert Vaca 2016-06-04 13:45:33 +02:00
parent 835a4f0bc7
commit d8aab59d4b

View File

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