diff options
| author | yipstanley <stanley_yip@brown.edu> | 2019-07-03 12:12:08 -0400 |
|---|---|---|
| committer | yipstanley <stanley_yip@brown.edu> | 2019-07-03 12:12:08 -0400 |
| commit | 6c5468eee0ec59d4ddaf116e67d067b567ccb87a (patch) | |
| tree | 1b6a77dbcf86663a29b75f7cef13be2e5328781a /src/client/views/pdf/Annotation.tsx | |
| parent | 5e35e1895bb54568bbf8cc3991480e20edd1de83 (diff) | |
pdf next/prev annotation fixes/improvements
Diffstat (limited to 'src/client/views/pdf/Annotation.tsx')
| -rw-r--r-- | src/client/views/pdf/Annotation.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/pdf/Annotation.tsx b/src/client/views/pdf/Annotation.tsx index 9718c1406..0a1661a1a 100644 --- a/src/client/views/pdf/Annotation.tsx +++ b/src/client/views/pdf/Annotation.tsx @@ -75,7 +75,7 @@ class RegionAnnotation extends React.Component<IRegionAnnotationProps> { () => this.props.parent.Index, () => { if (this.props.parent.Index === this.props.index) { - this.props.parent.scrollTo(this.props.y - 50); + this.props.parent.scrollTo(this.props.y * scale - (NumCast(this.props.parent.props.parent.Document.pdfHeight) / 2)); } } ); |
