开发者

Scrolling of a Document

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜