mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 05:37:43 +00:00
Fix delta
This commit is contained in:
parent
7c3a297bca
commit
377d2ddcd1
@ -121,11 +121,11 @@ public class PresenterPlugin extends Plugin {
|
||||
if (np == null) {
|
||||
np = new NetworkPacket(PACKET_TYPE_PRESENTER);
|
||||
} else {
|
||||
xDelta += np.getInt("px");
|
||||
yDelta += np.getInt("px");
|
||||
xDelta += np.getInt("dx");
|
||||
yDelta += np.getInt("dy");
|
||||
}
|
||||
np.set("px", xDelta);
|
||||
np.set("py", yDelta);
|
||||
np.set("dx", xDelta);
|
||||
np.set("dy", yDelta);
|
||||
device.sendPacket(np, NetworkPacket.PACKET_REPLACEID_PRESENTERPOINTER);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user