diff options
author | ab <abdullah_ahmed@brown.edu> | 2019-07-01 15:40:55 -0400 |
---|---|---|
committer | ab <abdullah_ahmed@brown.edu> | 2019-07-01 15:40:55 -0400 |
commit | 0fc7edd5f9bd1234f8de6e5b1c7b8f23668d784c (patch) | |
tree | 2ddff97c032657fb86de37c3be2cf2d201980088 /src/client/views/nodes/PDFBox.tsx | |
parent | 4f8b7cecea3ceed6861c38bde9ce03c9c46e2d09 (diff) | |
parent | 6bd79baf2d9301304194d87667bb5c66c17e5298 (diff) |
Merge branch 'monikasearch2' of https://github.com/browngraphicslab/Dash-Web into text_box_ab
Diffstat (limited to 'src/client/views/nodes/PDFBox.tsx')
-rw-r--r-- | src/client/views/nodes/PDFBox.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/nodes/PDFBox.tsx b/src/client/views/nodes/PDFBox.tsx index 8fb18e8fc..83dedb71d 100644 --- a/src/client/views/nodes/PDFBox.tsx +++ b/src/client/views/nodes/PDFBox.tsx @@ -217,10 +217,12 @@ export class PDFBox extends DocComponent<FieldViewProps, PdfDocument>(PdfDocumen @action onScroll = (e: React.UIEvent<HTMLDivElement>) => { + if (e.currentTarget) { this._scrollY = e.currentTarget.scrollTop; let ccv = this.props.ContainingCollectionView; if (ccv) { + ccv.props.Document.panTransformType = "None"; ccv.props.Document.scrollY = this._scrollY; } } |