File tree Expand file tree Collapse file tree
flutter/lib/desktop/widgets Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments