Skip to content

Commit 1978020

Browse files
authored
fix(custom-client): desktop, incoming only, touch drag (rustdesk#14928)
Signed-off-by: fufesou <linlong1266@gmail.com>
1 parent 0e4b91b commit 1978020

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

flutter/lib/desktop/widgets/tabbar_widget.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -593,13 +593,13 @@ class _DesktopTabState extends State<DesktopTab>
593593
}
594594

595595
Widget _buildBar() {
596+
final isIncomingHomePage = bind.isIncomingOnly() && isInHomePage();
596597
return Row(
597598
children: [
598599
Expanded(
599600
child: GestureDetector(
600601
// custom double tap handler
601-
onTap: !(bind.isIncomingOnly() && isInHomePage()) &&
602-
showMaximize
602+
onTap: !isIncomingHomePage && showMaximize
603603
? () {
604604
final current = DateTime.now().millisecondsSinceEpoch;
605605
final elapsed = current - _lastClickTime;
@@ -610,7 +610,7 @@ class _DesktopTabState extends State<DesktopTab>
610610
.then((value) => stateGlobal.setMaximized(value));
611611
}
612612
}
613-
: null,
613+
: (isIncomingHomePage ? () {} : null), // Keep tap recognizer for Windows touch.
614614
onPanStart: (_) => startDragging(isMainWindow),
615615
onPanCancel: () {
616616
// We want to disable dragging of the tab area in the tab bar.

0 commit comments

Comments
 (0)