Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试用鼠标中键替换 GtkScrollabelWindow 的滚动事件,这样我就可以用鼠标滚轮移动内容和缩放事件。解决这个问题的最佳方法是什么?我知道你可以做 CSS 键绑定的东西,但我并不真正了解 CSS,也找不到任何使用鼠标中键或鼠标移动作为键绑定的参考。我正在使用 gtkD (GTK3, Dlang) 但任何 C++ 形式的解决方案都可以,我可以很容易地在两者之间进行转换。