diff options
| author | Monika Hedman <monika_hedman@brown.edu> | 2019-02-12 16:26:22 -0500 |
|---|---|---|
| committer | Monika Hedman <monika_hedman@brown.edu> | 2019-02-12 16:26:22 -0500 |
| commit | 05a710e2a541a07347d1626489a1811874126c79 (patch) | |
| tree | feb751e46036d2104bb81c5bcc4e4ab0b6336c08 /src/util/ScrollBox.tsx | |
| parent | 6445930e05e8eb81a36930615926712986bc1a9d (diff) | |
| parent | 7a93f60c9529e5d175e617fc7c07145a9b33e572 (diff) | |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into hedmanLocal
Diffstat (limited to 'src/util/ScrollBox.tsx')
| -rw-r--r-- | src/util/ScrollBox.tsx | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/util/ScrollBox.tsx b/src/util/ScrollBox.tsx deleted file mode 100644 index b6b088170..000000000 --- a/src/util/ScrollBox.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import React = require("react") - -export class ScrollBox extends React.Component { - 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> - ) - } -}
\ No newline at end of file |
