From b71e828bc3e6c48d00dade555968c99b5deb412e Mon Sep 17 00:00:00 2001 From: bobzel Date: Sun, 18 Dec 2022 10:52:43 -0500 Subject: improved link line geometry. fixed 2 finger swiping to not change Chrome tabs. don't display link lines for cropped docs. fixed two finger drag to pan. --- src/client/views/MainView.scss | 7 +++++++ src/client/views/MarqueeAnnotator.tsx | 1 + .../collections/collectionFreeForm/CollectionFreeFormLinkView.tsx | 8 ++++---- .../collections/collectionFreeForm/CollectionFreeFormView.tsx | 6 +++--- 4 files changed, 15 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/client/views/MainView.scss b/src/client/views/MainView.scss index 069206126..b95ce0e99 100644 --- a/src/client/views/MainView.scss +++ b/src/client/views/MainView.scss @@ -1,5 +1,12 @@ @import 'global/globalCssVariables'; @import 'nodeModuleOverrides'; +html { + overscroll-behavior-x: none; +} +body { + overscroll-behavior-x: none; +} + h1, .h1 { // reverts change to h1 made by normalize.css diff --git a/src/client/views/MarqueeAnnotator.tsx b/src/client/views/MarqueeAnnotator.tsx index 07371c9d5..2fdb59361 100644 --- a/src/client/views/MarqueeAnnotator.tsx +++ b/src/client/views/MarqueeAnnotator.tsx @@ -119,6 +119,7 @@ export class MarqueeAnnotator extends React.Component { if (!e.aborted && e.linkDocument) { Doc.GetProto(e.linkDocument).linkRelationship = 'cropped image'; Doc.GetProto(e.linkDocument).title = 'crop: ' + this.props.docView.rootDoc.title; + Doc.GetProto(e.linkDocument).linkDisplay = false; } }, }); diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormLinkView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormLinkView.tsx index b85da2ce7..4c8c65707 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormLinkView.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormLinkView.tsx @@ -206,13 +206,13 @@ export class CollectionFreeFormLinkView extends React.Component