mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-26 06:22:45 +00:00
Ignore movement from cancelled touches
This commit is contained in:
parent
0b2466cf26
commit
02bfa90417
@ -186,6 +186,10 @@ public class RelativeTouchContext implements TouchContext {
|
|||||||
@Override
|
@Override
|
||||||
public boolean touchMoveEvent(int eventX, int eventY)
|
public boolean touchMoveEvent(int eventX, int eventY)
|
||||||
{
|
{
|
||||||
|
if (cancelled) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (eventX != lastTouchX || eventY != lastTouchY)
|
if (eventX != lastTouchX || eventY != lastTouchY)
|
||||||
{
|
{
|
||||||
// We only send moves and drags for the primary touch point
|
// We only send moves and drags for the primary touch point
|
||||||
|
Loading…
x
Reference in New Issue
Block a user