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:
parent
835a4f0bc7
commit
d8aab59d4b
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user