aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/PDFBox.tsx
diff options
context:
space:
mode:
authoryipstanley <stanley_yip@brown.edu>2019-06-18 10:05:49 -0400
committeryipstanley <stanley_yip@brown.edu>2019-06-18 10:05:49 -0400
commitcc032e2f60015728f64f46ef009c9306e36746a0 (patch)
tree44dbddbcac966206731797d8215173f033ae0cd2 /src/client/views/nodes/PDFBox.tsx
parent62e7e21d6db96a9c62710c2bc6842705b79f5665 (diff)
fixes
Diffstat (limited to 'src/client/views/nodes/PDFBox.tsx')
-rw-r--r--src/client/views/nodes/PDFBox.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/PDFBox.tsx b/src/client/views/nodes/PDFBox.tsx
index 655c12ab3..ae68a530e 100644
--- a/src/client/views/nodes/PDFBox.tsx
+++ b/src/client/views/nodes/PDFBox.tsx
@@ -62,7 +62,7 @@ export class PDFBox extends DocComponent<FieldViewProps, PdfDocument>(PdfDocumen
createRef = (ele: HTMLDivElement | null) => {
if (this._reactionDisposer) this._reactionDisposer();
this._reactionDisposer = reaction(() => this.props.Document.scrollY, () => {
- ele && ele.scrollTo({ top: NumCast(this.Document.scrollY), behavior: "smooth" });
+ ele && ele.scrollTo({ top: NumCast(this.Document.scrollY), behavior: "auto" });
});
}