diff options
author | bobzel <zzzman@gmail.com> | 2022-12-05 22:45:22 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-12-05 22:45:22 -0500 |
commit | 613daac016c367205ff1afddd81b7b9111c52d33 (patch) | |
tree | 3120908a581fdeed709e1b60516ca2e97ad58fca /src/client/util/LinkFollower.ts | |
parent | 66184a172006de4d4bf72d9da33858e04d298181 (diff) |
cleaning up following links and pres item following so that view transitions don't interfere when clicking quickly (eg through animation frames). changed animations to animate multi-level zooming parallel.
Diffstat (limited to 'src/client/util/LinkFollower.ts')
-rw-r--r-- | src/client/util/LinkFollower.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/LinkFollower.ts b/src/client/util/LinkFollower.ts index 4f742817a..aec4db1df 100644 --- a/src/client/util/LinkFollower.ts +++ b/src/client/util/LinkFollower.ts @@ -48,7 +48,7 @@ export class LinkFollower { }); } else { 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 + res(where !== OpenWhere.inPlace || BoolCast(sourceDoc.followLinkZoom) ? ViewAdjustment.resetView : ViewAdjustment.doNothing); // for 'inPlace' resetting the initial focus&zoom would negate the zoom into the target } }, 100); }); |