debug android scroll

Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow 2023-08-10 14:49:49 +08:00
parent 072430cef5
commit 5b2358c97f

View File

@ -180,6 +180,8 @@ class InputService : AccessibilityService() {
TOUCH_PAN_UPDATE -> { TOUCH_PAN_UPDATE -> {
mouseX -= _x * SCREEN_INFO.scale mouseX -= _x * SCREEN_INFO.scale
mouseY -= _y * SCREEN_INFO.scale mouseY -= _y * SCREEN_INFO.scale
mouseX = max(0, mouseX);
mouseY = max(0, mouseY);
continueGesture(mouseX, mouseY) continueGesture(mouseX, mouseY)
} }
TOUCH_PAN_START -> { TOUCH_PAN_START -> {