fix(custom-client): desktop, incoming only, touch drag (#14928)

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou
2026-05-11 12:58:32 +08:00
committed by GitHub
parent 0e4b91b8d7
commit 1978020d27

View File

@@ -593,13 +593,13 @@ class _DesktopTabState extends State<DesktopTab>
} }
Widget _buildBar() { Widget _buildBar() {
final isIncomingHomePage = bind.isIncomingOnly() && isInHomePage();
return Row( return Row(
children: [ children: [
Expanded( Expanded(
child: GestureDetector( child: GestureDetector(
// custom double tap handler // custom double tap handler
onTap: !(bind.isIncomingOnly() && isInHomePage()) && onTap: !isIncomingHomePage && showMaximize
showMaximize
? () { ? () {
final current = DateTime.now().millisecondsSinceEpoch; final current = DateTime.now().millisecondsSinceEpoch;
final elapsed = current - _lastClickTime; final elapsed = current - _lastClickTime;
@@ -610,7 +610,7 @@ class _DesktopTabState extends State<DesktopTab>
.then((value) => stateGlobal.setMaximized(value)); .then((value) => stateGlobal.setMaximized(value));
} }
} }
: null, : (isIncomingHomePage ? () {} : null), // Keep tap recognizer for Windows touch.
onPanStart: (_) => startDragging(isMainWindow), onPanStart: (_) => startDragging(isMainWindow),
onPanCancel: () { onPanCancel: () {
// We want to disable dragging of the tab area in the tab bar. // We want to disable dragging of the tab area in the tab bar.