mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 09:05:10 +00:00
chore: Follow up select events
This commit is contained in:
parent
6b53d27c4c
commit
e60bc1c340
1 changed files with 12 additions and 12 deletions
|
@ -426,18 +426,18 @@ class Message extends StatelessWidget {
|
||||||
),
|
),
|
||||||
direction: SwipeDirection.endToStart,
|
direction: SwipeDirection.endToStart,
|
||||||
onSwipe: (_) => onSwipe(),
|
onSwipe: (_) => onSwipe(),
|
||||||
child: HoverBuilder(
|
child: GestureDetector(
|
||||||
builder: (context, hovered) => GestureDetector(
|
onTapDown: (details) {
|
||||||
onTapDown: (details) {
|
lastTapDownDetails = details;
|
||||||
lastTapDownDetails = details;
|
},
|
||||||
},
|
onTap: () {
|
||||||
onTap: () {
|
if (lastTapDownDetails?.kind == PointerDeviceKind.mouse) {
|
||||||
if (lastTapDownDetails?.kind == PointerDeviceKind.mouse) {
|
return;
|
||||||
return;
|
}
|
||||||
}
|
onSelect(event);
|
||||||
onSelect(event);
|
},
|
||||||
},
|
child: HoverBuilder(
|
||||||
child: Stack(
|
builder: (context, hovered) => Stack(
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
constraints: const BoxConstraints(
|
constraints: const BoxConstraints(
|
||||||
|
|
Loading…
Reference in a new issue