From 6d381342973bf60a1f67d6558e2dc088b77ecb2f Mon Sep 17 00:00:00 2001
From: Zachary Zhang <zacharyzhang7@gmail.com>
Date: Fri, 26 Jul 2024 13:48:10 -0400
Subject: got child docs in gesture overlay

---
 src/client/views/GestureOverlay.tsx | 8 ++++++++
 1 file changed, 8 insertions(+)

(limited to 'src/client/views/GestureOverlay.tsx')

diff --git a/src/client/views/GestureOverlay.tsx b/src/client/views/GestureOverlay.tsx
index dd80418c8..c2fe60e21 100644
--- a/src/client/views/GestureOverlay.tsx
+++ b/src/client/views/GestureOverlay.tsx
@@ -31,6 +31,7 @@ import { Transform } from '../util/Transform';
 import './GestureOverlay.scss';
 import { ObservableReactComponent } from './ObservableReactComponent';
 import { ActiveFillColor, DocumentView } from './nodes/DocumentView';
+import { CollectionFreeFormView } from './collections/collectionFreeForm';
 
 export enum ToolglassTools {
     InkToText = 'inktotext',
@@ -131,8 +132,15 @@ export class GestureOverlay extends ObservableReactComponent<React.PropsWithChil
             // SetActiveArrowEnd('none');
         }
     }
+    isScribble() {
+        const ffView = DocumentView.allViews().find(view => view.ComponentView instanceof CollectionFreeFormView);
+        if ((ffView?.ComponentView as CollectionFreeFormView).childDocs) {
+            console.log((ffView?.ComponentView as CollectionFreeFormView).childDocs.length);
+        }
+    }
     @action
     onPointerUp = () => {
+        this.isScribble();
         console.log('pointer up');
         DocumentView.DownDocView = undefined;
         if (this._points.length > 1) {
-- 
cgit v1.2.3-70-g09d2

