开发者

Scrolling of a Document

开发者 https://www.devze.com 2022-12-13 16:35 出处:网络
I\'m working on an application in c#, which reads a pdf document. As we all know we have hand tool in most of the pdf reader, which is used to scroll the document. My issue is when I use the hand tool

I'm working on an application in c#, which reads a pdf document. As we all know we have hand tool in most of the pdf reader, which is used to scroll the document. My issue is when I use the hand tool to scroll the mouse, the s开发者_开发问答peed of the movement of the mouse and the speed of the scrolling of the document is not synchronized. Not matter how fast or slow I move the mouse, speed of scrolling of the document remains same.

I need help in developing the logic for this.


In your mouse move event, determine how far the mouse has moved, and scroll the document by that much.

0

精彩评论

暂无评论...
验证码 换一张
取 消