diff options
author | bobzel <zzzman@gmail.com> | 2023-11-19 19:18:15 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-11-19 19:18:15 -0500 |
commit | c034a59564aeb02fabf45eb13db6390e71b4ffcb (patch) | |
tree | fe679820d6c42c3f4f5981ef1058cb866d406388 /src | |
parent | 3d18fc27f55c993de9c61297428690aa9c49184f (diff) |
stop rendering web pages when zoomed out > 25x
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/nodes/WebBox.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/nodes/WebBox.tsx b/src/client/views/nodes/WebBox.tsx index 010d67fed..524a3cc4a 100644 --- a/src/client/views/nodes/WebBox.tsx +++ b/src/client/views/nodes/WebBox.tsx @@ -762,6 +762,7 @@ export class WebBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProps @observable lighttext = false; @computed get urlContent() { + if (this.props.ScreenToLocalTransform().Scale > 25) return <div></div>; setTimeout( action(() => { if (this._initialScroll === undefined && !this._webPageHasBeenRendered) { |