diff options
author | bob <bcz@cs.brown.edu> | 2019-02-25 12:38:47 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-02-25 12:38:47 -0500 |
commit | c439f11ba9695703697f7abc53a7cc2fd2d5c1a2 (patch) | |
tree | d3977cb05f37ec77eadb782c65d4766777dc0e18 /src/client/views/nodes/FormattedTextBox.tsx | |
parent | e57c8ed3944bf737afdb2f564d159a53f8a6b1c6 (diff) |
fixes for dropping documents without a know height.
Diffstat (limited to 'src/client/views/nodes/FormattedTextBox.tsx')
-rw-r--r-- | src/client/views/nodes/FormattedTextBox.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx index 60ee0b5e1..a58e1955f 100644 --- a/src/client/views/nodes/FormattedTextBox.tsx +++ b/src/client/views/nodes/FormattedTextBox.tsx @@ -111,10 +111,13 @@ export class FormattedTextBox extends React.Component<FieldViewProps> { e.stopPropagation(); } } + onPointerWheel = (e: React.WheelEvent): void => { + e.stopPropagation(); + } render() { - var val = this.props.doc.Get(this.props.fieldKey); return (<div className="formattedTextBox-cont" onPointerDown={this.onPointerDown} + onWheel={this.onPointerWheel} ref={this._ref} />) } }
\ No newline at end of file |