Skip to content

Commit

Permalink
fix: wrap onExit with preventClose condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Xazin committed May 30, 2024
1 parent de4d47f commit ce07437
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,11 @@ class VideoBlockComponentState extends State<VideoBlockComponent>
} else {
child = MouseRegion(
onEnter: (_) => showActionsNotifier.value = true,
onExit: (_) => showActionsNotifier.value = false,
onExit: (_) {
if (!preventClose) {
showActionsNotifier.value = false;
}
},
hitTestBehavior: HitTestBehavior.opaque,
opaque: false,
child: ValueListenableBuilder<bool>(
Expand Down

0 comments on commit ce07437

Please sign in to comment.