pvginkel / PdfiumViewer

PDF viewer based on Google's PDFium.
Apache License 2.0
972 stars 418 forks source link

Smooth scrolling #128

Open Doaxan opened 7 years ago

Doaxan commented 7 years ago

Can i get smooth scrolling in this demo: https://github.com/pvginkel/PdfiumViewer/tree/master/PdfiumViewer.Demo ?

pvginkel commented 7 years ago

I've pushed a branch with a prototype implementation, attached to this ticket. I've tried to implement smooth scrolling manually since .NET doesn't have native support for this.

Could you have a look and give your opinion on the implementation?

wowangus commented 7 years ago

I was digging into codebase and trying to implement smooth scrolling for the viewer, and just found @pvginkel added a commit referencing the same topic just a few couple seconds ago. Glad to meet you.

pvginkel commented 7 years ago

No problem. This was a lot of fiddling. I think I got it kind of right, but the parameters may need some continuing, especially AnimationDuration. I'd welcome feedback on this.