fix ScrollPaneSnapAction calling dirtyIndicator() every update
1 files changed, 2 insertions(+), 2 deletions(-)

M src/main/net/dermetfan/gdx/scenes/scene2d/ui/ScrollPaneSnapAction.java
M src/main/net/dermetfan/gdx/scenes/scene2d/ui/ScrollPaneSnapAction.java +2 -2
@@ 113,10 113,10 @@ public class ScrollPaneSnapAction extend
 		}
 
 		if(indicator != null && (pane.getVisualScrollX() != visualScrollX || pane.getVisualScrollY() != visualScrollY)) {
+			if(!slotsUpdated)
+				updateSlots();
 			visualScrollX = pane.getVisualScrollX();
 			visualScrollY = pane.getVisualScrollY();
-			if(!slotsUpdated)
-				updateSlots();
 			final float currentSlot = indicateVertical ? getSnappedSlotY() : getSnappedSlotX();
 			final int pages = slots.size / 2;
 			int page = -1;