allenai / pdf-component-library

51 stars 5 forks source link

Fix TOC click reorientation #109

Closed yensung closed 2 years ago

yensung commented 2 years ago

Ticket: https://github.com/allenai/scholar/issues/31239

Root cause: the leftPoint was set to the location of titles originally, so for titles on the right column the paper will reorientate to the right (though I don't think it is a bug since the contents on the left are not in the same section with the contents on the right) Solution: set leftPoint to 0 so the paper scroll vertically only

After https://user-images.githubusercontent.com/84034381/158449494-d14481ad-1c07-4a7b-8db4-0bff2a80a28d.mp4