PdfiumViewer icon indicating copy to clipboard operation
PdfiumViewer copied to clipboard

Smooth scrolling

Open Doaxan opened this issue 7 years ago • 3 comments

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

Doaxan avatar Aug 29 '17 13:08 Doaxan

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?

pvginkel avatar Nov 07 '17 14:11 pvginkel

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.

wowangus avatar Nov 07 '17 14:11 wowangus

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.

pvginkel avatar Nov 07 '17 14:11 pvginkel