Skip to content

Commit 1c55fc6

Browse files
authored
refactor(perf): TitleBar now doesn't listen for onDoubleTap if the caller doesn't provide a callback. Listening for onDoubleTap causes a 300ms delay on single taps (see flutter/flutter#110300) (#1340)
1 parent 043c40a commit 1c55fc6

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
`MenuBar` now uses `RawMenuBar` under the hood.
66
- feat: `Tooltip.enableTapToDismiss` and `Tooltip.onTriggered` ([#1338](https://github.com/bdlukaa/fluent_ui/pull/1338))
77
`Tooltip` now uses `RawTooltip` under the hood.
8+
- refactor(perf): `TitleBar` now doesn't listen for `onDoubleTap` if the caller doesn't provide a callback. Listening for `onDoubleTap` causes a 300ms delay on single taps (see flutter/flutter#110300)
89
- fix: `NumberBox` fix focus (using tab) when `clearButton` is true ([#1341](https://github.com/bdlukaa/fluent_ui/pull/1341))
910

1011
## 4.16.0

lib/src/controls/navigation/navigation_view/title_bar.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ class TitleBar extends StatelessWidget {
150150
onPanEnd: (_) => onDragEnded?.call(),
151151
onPanCancel: () => onDragCancelled?.call(),
152152
onPanUpdate: (_) => onDragUpdated?.call(),
153-
onDoubleTap: () => onDoubleTap?.call(),
153+
onDoubleTap: onDoubleTap,
154154
child: ConstrainedBox(
155155
constraints: BoxConstraints.tightFor(
156156
// according to documentation, increase the size of the title bar if

0 commit comments

Comments
 (0)