Blurred Scrolling

Hi,

Have found another little problem with blurring, this time with scrolling using ScrollArea. It’s fine when scrolled to the top of the content, but using the slider or any other method of scrolling usually starts blurring things. Again most noticeable with small clear fonts :-

After some scrolling

Before scrolling (also how it looks after fixing)

This fix is simple, just cast the y position to int or round it or whatever :slight_smile:

[java]
/**

  • Scrolls the Scrollable Area to the specified Y coord
  • @param y float
    */
    public void scrollYTo(float y) {
    adjustWidthForScroll();
    if (scrollableArea == null) {
    textElement.setLocalTranslation(textElement.getLocalTranslation().setY((int)y));
    } else {
    scrollableArea.setY(0);
    scrollableArea.setY((int)y);
    }
    controlScrollHook();
    }
    [/java]

RR

2 Likes