2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 05:37:43 +00:00

Fix delta

This commit is contained in:
Albert Vaca Cintora 2019-07-21 10:06:56 +02:00
parent 7c3a297bca
commit 377d2ddcd1

View File

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