From 196b92cb84095780d2b36244831cac03e9b66d8e Mon Sep 17 00:00:00 2001 From: bobzel Date: Thu, 14 Nov 2024 10:48:16 -0500 Subject: changed isScribble related code to be more robust at determine cusps and deciding if cusps amount to a scribble. enabled undo of scribble erase without undoing scribble. added cusp visualizer for debugging, and cleaned up downDocView to be downFfview on CollectionFreeformView. --- .../collections/collectionFreeForm/CollectionFreeFormView.tsx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx') diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx index 3de97f836..49b432d7c 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx @@ -98,6 +98,11 @@ export class CollectionFreeFormView extends CollectionSubView { + if (!CollectionFreeFormView.DownFfview) CollectionFreeFormView.DownFfview = this; + this._downX = this._lastX = e.pageX; this._downY = this._lastY = e.pageY; this._downTime = Date.now(); -- cgit v1.2.3-70-g09d2