tmp build

Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow 2023-08-10 08:37:18 +08:00
parent b9c8df7019
commit be982d95ea
2 changed files with 3 additions and 5 deletions

View File

@ -190,8 +190,10 @@ class InputService : AccessibilityService() {
startGesture(mouseX, mouseY)
}
TOUCH_PAN_END -> {
endGesture(mouseX, mouseY)
mouseX = x * SCREEN_INFO.scale
mouseY = y * SCREEN_INFO.scale
continueGesture(mouseX, mouseY)
endGesture(mouseX, mouseY)
}
else -> {}

View File

@ -379,8 +379,7 @@ class InputModel {
var x = delta.dx.toInt();
var y = delta.dy.toInt();
if (peerPlatform == kPeerPlatformLinux ||
peerPlatform == kPeerPlatformAndroid) {
if (peerPlatform == kPeerPlatformLinux) {
_trackpadScrollUnsent += (delta * _trackpadSpeed);
x = _trackpadScrollUnsent.dx.truncate();
y = _trackpadScrollUnsent.dy.truncate();
@ -638,7 +637,6 @@ class InputModel {
Offset offset, {
bool onExit = false,
}) {
debugPrint('REMOVE ME ========================= 111');
double x = offset.dx;
double y = max(0.0, offset.dy);
if (_checkPeerControlProtected(x, y)) {
@ -672,7 +670,6 @@ class InputModel {
buttons: evt['buttons'],
);
if (pos == null) {
debugPrint('REMOVE ME ========================= 222');
return;
}
if (type != '') {
@ -691,7 +688,6 @@ class InputModel {
kForwardMouseButton: 'forward'
};
evt['buttons'] = mapButtons[evt['buttons']] ?? '';
debugPrint('REMOVE ME ========================= 333 $evt');
bind.sessionSendMouse(sessionId: sessionId, msg: json.encode(modify(evt)));
}