更新时间:2022-12-11 18:40:17
我发现的***解决方案是创建自己的滚动面板.滚动条环绕焦点面板.我已将 Mousedown、mousemove 和 mouseout 处理程序添加到焦点面板.记录鼠标移动并相应地移动内容.
The best solution i found is to create my own scroll panel. The scroll bar is wrapped around a Focus panel. I've added Mousedown, mousemove and mouseout handlers to the focus panel. Recording the mouse movements and moving the contents accordingly.