diff options
author | bobzel <zzzman@gmail.com> | 2022-11-10 11:18:46 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-11-10 11:18:46 -0500 |
commit | bbc993dd70d105c3de078208763e6415eedb1ff7 (patch) | |
tree | ad901a08d9369dc5d6ca71cdf4edef48ee8b7894 /src/client/util/LinkFollower.ts | |
parent | 51e8786c33a1af207081212802e6da03476edf4a (diff) |
partial fix for previewing multiple links to different sidebar notes. fixed opening sidebar to create an annotation the first time. fixed honoring dashFieldView's non-editable flag. moved isLinkButton setter to expert and make isLinkButton default for Buttons. fixed following Links with Zoom to reset view. fixed view for editing onClick for documents
Diffstat (limited to 'src/client/util/LinkFollower.ts')
-rw-r--r-- | src/client/util/LinkFollower.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/util/LinkFollower.ts b/src/client/util/LinkFollower.ts index ea0531fa2..43b2caf88 100644 --- a/src/client/util/LinkFollower.ts +++ b/src/client/util/LinkFollower.ts @@ -48,9 +48,10 @@ export class LinkFollower { }, }); } else { - res(where !== 'inPlace' ? ViewAdjustment.resetView : ViewAdjustment.doNothing); // for 'inPlace' resetting the initial focus&zoom would negate the zoom into the target + finished?.(); + res(where !== 'inPlace' || BoolCast(sourceDoc.followLinkZoom) ? ViewAdjustment.resetView : ViewAdjustment.doNothing); // for 'inPlace' resetting the initial focus&zoom would negate the zoom into the target } - }); + }, 100); }); if (!sourceDoc.followLinkZoom) { |