简体   繁体   中英

Libgdx make scrollPane don't need a click interaction for starting scroll

我正在尝试制作一个在鼠标悬停时滚动的滚动窗格,例如 Web 滚动窗格,但是要开始滚动,我需要单击滚动窗格,还要停止滚动,我需要在其外部单击,任何人都知道如何制作无需单击即可滚动滚动。

当您希望鼠标滚轮滚动工作时,您必须将舞台的滚动焦点设置为窗格。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM