Libgdx使用过程中的漏洞整理

    xiaoxiao2026-08-30  11

    1、ScrollPane中,滑动窗体,会响应点击的item的触摸事件。(在ScrollPane中,按下滚动时,会触发初始点击的item的touchDown和touchUp方法)

    解决方案:进行过滤。可以传入ClickListener,也可以在touchUp方法中判断手指抬起的位置是否在item的触摸范围内。

    2.

    转载请注明原文地址: https://ju.6miu.com/read-1311723.html
    最新回复(0)