소스 검색

fix: handle forceCallback param correctly

Georg Wechslberger 3 년 전
부모
커밋
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);
     }
   }