From db76556dd1f5c8e6c04a388f5b0f6a46f223efce Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Mon, 15 Mar 2021 21:41:04 -0400
Subject: final cleanups to get scrolling to work smoothly for webbox's -
 sadly, does not work as well in Firefox, and even worse in Safari.

---
 src/client/views/collections/CollectionSubView.tsx | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

(limited to 'src/client/views/collections/CollectionSubView.tsx')

diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx
index 3bde55af9..8128c18d7 100644
--- a/src/client/views/collections/CollectionSubView.tsx
+++ b/src/client/views/collections/CollectionSubView.tsx
@@ -373,16 +373,17 @@ export function CollectionSubView<T, X>(schemaCtor: (doc: Doc) => T, moreProps?:
             }
             if (uriList) {
                 console.log("Web URI = ", uriList);
-                const existingWebDoc = await Hypothesis.findWebDoc(uriList);
-                if (existingWebDoc) {
-                    const alias = Doc.MakeAlias(existingWebDoc);
-                    alias.x = options.x;
-                    alias.y = options.y;
-                    alias._nativeWidth = 850;
-                    alias._height = 512;
-                    alias._width = 400;
-                    addDocument(alias);
-                } else {
+                // const existingWebDoc = await Hypothesis.findWebDoc(uriList);
+                // if (existingWebDoc) {
+                //     const alias = Doc.MakeAlias(existingWebDoc);
+                //     alias.x = options.x;
+                //     alias.y = options.y;
+                //     alias._nativeWidth = 850;
+                //     alias._height = 512;
+                //     alias._width = 400;
+                //     addDocument(alias);
+                // } else 
+                {
                     console.log("Adding ...");
                     const newDoc = Docs.Create.WebDocument(uriList.split("#annotations:")[0], {// clean hypothes.is URLs that reference a specific annotation (eg. https://en.wikipedia.org/wiki/Cartoon#annotations:t7qAeNbCEeqfG5972KR2Ig)
                         ...options,
-- 
cgit v1.2.3-70-g09d2

