diff options
| author | bobzel <zzzman@gmail.com> | 2021-07-29 20:15:46 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-07-29 20:15:46 -0400 |
| commit | b6b2057cf28e8c0d3c22b9056074fe5155602d0a (patch) | |
| tree | e1bf9d49a9d8802ed4481ef1b5a13351e4d52785 /src/client/views/nodes | |
| parent | e63ebde5c968f458b4aa8fade0271fbbcaf451c4 (diff) | |
converted HTMLANCHOR and TEXTANCHOR to MARKER
Diffstat (limited to 'src/client/views/nodes')
| -rw-r--r-- | src/client/views/nodes/WebBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/WebBox.tsx b/src/client/views/nodes/WebBox.tsx index abc3a7d7d..f5b1f96f2 100644 --- a/src/client/views/nodes/WebBox.tsx +++ b/src/client/views/nodes/WebBox.tsx @@ -163,7 +163,7 @@ export class WebBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProps if (this._sidebarRef?.current?.makeDocUnfiltered(doc)) return 1; if (doc !== this.rootDoc && this._outerRef.current) { const windowHeight = this.props.PanelHeight() / (this.props.scaling?.() || 1); - const scrollTo = doc.type === DocumentType.TEXTANCHOR ? NumCast(doc.y) : Utils.scrollIntoView(NumCast(doc.y), doc[HeightSym](), NumCast(this.layoutDoc._scrollTop), windowHeight, windowHeight * .1); + const scrollTo = Utils.scrollIntoView(NumCast(doc.y), doc[HeightSym](), NumCast(this.layoutDoc._scrollTop), windowHeight, windowHeight * .1); if (scrollTo !== undefined) { const focusSpeed = smooth ? 500 : 0; this._initialScroll !== undefined && (this._initialScroll = scrollTo); |
