diff options
author | bobzel <zzzman@gmail.com> | 2022-04-29 17:38:06 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-04-29 17:38:06 -0400 |
commit | 55a5322fffc09bde04ef8b466e19b701bad2762b (patch) | |
tree | d39e55336405bd4d79bd26b150ba5caf052d6fef /src/client/views/nodes/WebBox.tsx | |
parent | a6aec8759298fba41b486a973796662056f47da0 (diff) |
added 'enter' to toggle iconify. fixed webBox deiconify to render webpage. updated colors in minimap to match icon colors.
Diffstat (limited to 'src/client/views/nodes/WebBox.tsx')
-rw-r--r-- | src/client/views/nodes/WebBox.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/views/nodes/WebBox.tsx b/src/client/views/nodes/WebBox.tsx index 5a39123b9..5c72417cc 100644 --- a/src/client/views/nodes/WebBox.tsx +++ b/src/client/views/nodes/WebBox.tsx @@ -158,7 +158,7 @@ export class WebBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProps }); } } - }); + }, { fireImmediately: this.props.isSelected() }); this._disposers.autoHeight = reaction(() => this.layoutDoc._autoHeight, autoHeight => { @@ -202,10 +202,10 @@ export class WebBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProps ); quickScroll = false; } - componentWillUnmount() { + @action componentWillUnmount() { Object.values(this._disposers).forEach(disposer => disposer?.()); - this._iframe?.removeEventListener('wheel', this.iframeWheel, true); - this._iframe?.contentDocument?.removeEventListener("pointerup", this.iframeUp); + // this._iframe?.removeEventListener('wheel', this.iframeWheel, true); + // this._iframe?.contentDocument?.removeEventListener("pointerup", this.iframeUp); } @action |