文档的滚动

发布于 2024-08-13 08:47:58 字数 157 浏览 1 评论 0原文

我正在用 C# 开发一个应用程序,它可以读取 pdf 文档。众所周知,大多数pdf阅读器中都有手动工具,用于滚动文档。我的问题是,当我使用手形工具滚动鼠标时,鼠标移动的速度和文档滚动的速度不同步。无论我移动鼠标的速度有多快或多慢,文档滚动的速度都保持不变。

我需要帮助来开发这个逻辑。

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 speed 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

岛歌少女 2024-08-20 08:47:58

在鼠标移动事件中,确定鼠标移动了多远,然后将文档滚动该距离。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文