Просмотр исходного кода

fix: handle forceCallback param correctly

Georg Wechslberger 3 лет назад
Родитель
Сommit
6c21dc74b0
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      lib/src/ui/gesture/gesture_handler.dart

+ 1 - 1
lib/src/ui/gesture/gesture_handler.dart

@@ -120,7 +120,7 @@ class _TerminalGestureHandlerState extends State<TerminalGestureHandler> {
       );
     }
     // If the event was not handled by the terminal, use the supplied callback.
-    if (!handled && forceCallback) {
+    if (!handled || forceCallback) {
       callback?.call(details);
     }
   }