我的scrollPane不滚动时,我添加ScrollPaneStyle,有谁知道为什么happinging?Libgdx scrollPane没有滚动后,我添加了scrollPaneStyel
scroller = new ScrollPane(myWidget , skin);
scroller.setBounds(0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
this.addActor(scroller);
scroller.setLayoutEnabled(true);
scroller.setCancelTouchFocus(true);
ScrollPaneStyle paneStyle = new ScrollPaneStyle();
Texture tex = new Texture(Gdx.files.internal(filepath + "page.png"));
tex.setWrap(Texture.TextureWrap.Repeat, Texture.TextureWrap.ClampToEdge);
paneStyle.background = new SpriteDrawable(new Sprite(tex));
scroller.setScrollbarsOnTop(true);
scroller.setStyle(paneStyle);