diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2019-07-12 22:19:05 -0400 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2019-07-12 22:19:05 -0400 |
| commit | f9c833cafb9c0268435aef4eafe240c3403d7472 (patch) | |
| tree | eb9a0859c6a4c9be5e72434e8a8fca394baa58df /src/client/views/nodes/FormattedTextBox.tsx | |
| parent | 4db507d08249ccddf664798ab59c3b729c3d1065 (diff) | |
| parent | 59d32987f4f220c97a3b3cd4886ba47f3e8c4341 (diff) | |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/views/nodes/FormattedTextBox.tsx')
| -rw-r--r-- | src/client/views/nodes/FormattedTextBox.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx index bc36074d2..82c2cef26 100644 --- a/src/client/views/nodes/FormattedTextBox.tsx +++ b/src/client/views/nodes/FormattedTextBox.tsx @@ -350,7 +350,8 @@ export class FormattedTextBox extends DocComponent<(FieldViewProps & FormattedTe } } onPointerWheel = (e: React.WheelEvent): void => { - if (this.props.isSelected()) { + // if a text note is not selected and scrollable, this prevents us from being able to scroll and zoom out at the same time + if (this.props.isSelected() || e.currentTarget.scrollHeight > e.currentTarget.clientHeight) { e.stopPropagation(); } } |
