Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

tmp build

dignowbe982d95ea54
diff --git a/flutter/android/app/src/main/kotlin/com/carriez/flutter_hbb/InputService.kt b/flutter/android/app/src/main/kotlin/com/carriez/flutter_hbb/InputService.kt
index 8e14a590d..84ef31793 100644
--- a/flutter/android/app/src/main/kotlin/com/carriez/flutter_hbb/InputService.kt
+++ b/flutter/android/app/src/main/kotlin/com/carriez/flutter_hbb/InputService.kt
@@ -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 -> {}
diff --git a/flutter/lib/models/input_model.dart b/flutter/lib/models/input_model.dart
index eaff4ed6a..971bbb7e5 100644
--- a/flutter/lib/models/input_model.dart
+++ b/flutter/lib/models/input_model.dart
@@ -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)));
}