diff options
author | bobzel <zzzman@gmail.com> | 2024-03-01 08:23:06 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-03-01 08:23:06 -0500 |
commit | 25474b83f908732b2618cb7110f1e410030f9280 (patch) | |
tree | a942453765eb876ffaa3899d623fa77e13a196b4 /src/client/util/ScrollBox.tsx | |
parent | 4e837a73f5fae06368416f99c047d78f6b94565b (diff) | |
parent | 3179048be75fb7662fc472249798b2d103dc5544 (diff) |
Merge branch 'master' into info-ui-observable
Diffstat (limited to 'src/client/util/ScrollBox.tsx')
-rw-r--r-- | src/client/util/ScrollBox.tsx | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/client/util/ScrollBox.tsx b/src/client/util/ScrollBox.tsx deleted file mode 100644 index 785526ab3..000000000 --- a/src/client/util/ScrollBox.tsx +++ /dev/null @@ -1,24 +0,0 @@ -import * as React from 'react'; - -export class ScrollBox extends React.Component<React.PropsWithChildren<{}>> { - onWheel = (e: React.WheelEvent) => { - if (e.currentTarget.scrollHeight > e.currentTarget.clientHeight) { - // If the element has a scroll bar, then we don't want the containing collection to zoom - e.stopPropagation(); - } - }; - - render() { - return ( - <div - style={{ - overflow: 'auto', - width: '100%', - height: '100%', - }} - onWheel={this.onWheel}> - {this.props.children} - </div> - ); - } -} |