diff options
-rw-r--r-- | src/client/views/linking/LinkFollowBox.tsx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/client/views/linking/LinkFollowBox.tsx b/src/client/views/linking/LinkFollowBox.tsx index f58e0c8b0..f78446771 100644 --- a/src/client/views/linking/LinkFollowBox.tsx +++ b/src/client/views/linking/LinkFollowBox.tsx @@ -77,11 +77,17 @@ export class LinkFollowBox extends React.Component<FieldViewProps> { } }); - if (shouldReturn) { (() => { this.canPan = false; }); return; } + if (shouldReturn) { + runInAction(() => { this.canPan = false; }); + } } - else { runInAction(() => { this.canPan = false; }); return; } + else { + runInAction(() => { this.canPan = false; }); + } + } + else { + runInAction(() => { this.canPan = false; }); } - else { runInAction(() => { this.canPan = false; }); return; } } ); } |