tmp build
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
parent
b9c8df7019
commit
be982d95ea
@ -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 -> {}
|
||||
|
@ -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)));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user