diff options
author | bobzel <zzzman@gmail.com> | 2025-05-01 15:32:10 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2025-05-01 15:32:10 -0400 |
commit | d993a3a389464773d04b31de5d427ec4eb5e3d5b (patch) | |
tree | b60a98aacd67769043f96dde14ce12cfa299264f /src/client/views/nodes/formattedText/FormattedTextBox.tsx | |
parent | 95db4029fdfa8b1951c29144fdb9e589b77fd77a (diff) |
cleaned up, a bit, how wheel events are blocked from propagating.
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBox.tsx')
-rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBox.tsx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index d6fa3172d..c51f6c38b 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -2120,11 +2120,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<FormattedTextB ) : styleFromLayout?.height === '0px' ? null : ( <div className="formattedTextBox" - ref={r => { - this._oldWheel?.removeEventListener('wheel', this.onPassiveWheel); - this._oldWheel = r; - r?.addEventListener('wheel', this.onPassiveWheel, { passive: false }); - }} + ref={r => this.fixWheelEvents(r, this._props.isContentActive, this.onPassiveWheel)} style={{ ...(this._props.dontScale ? {} |