mirror of
https://github.com/rustdesk/rustdesk
synced 2026-05-24 09:28:23 +00:00
long press for drag
This commit is contained in:
parent
7a2d687367
commit
8583b6b140
1 changed files with 11 additions and 0 deletions
|
|
@ -178,6 +178,17 @@ class _RemotePageState extends State<RemotePage> {
|
|||
if (_drag || _scroll) return;
|
||||
FFI.tap(_right);
|
||||
},
|
||||
onLongPressStart: (_) {
|
||||
if (_drag) {
|
||||
// case: to show password on windows
|
||||
FFI.sendMouse('down', 'left');
|
||||
}
|
||||
},
|
||||
onLongPressEnd: (_) {
|
||||
if (_drag) {
|
||||
FFI.sendMouse('up', 'left');
|
||||
}
|
||||
},
|
||||
onScaleStart: (details) {
|
||||
_scale = 1;
|
||||
_xOffset = details.focalPoint.dx;
|
||||
|
|
|
|||
Loading…
Reference in a new issue