Hello. By autoscroll I mean hovering over the bottom or top area of a scroll box and having it scroll up or down by a set speed, and stop scrolling when unhovering from those areas.
I’ve tried this with a scroll box and Set Scroll Offset, and it worked alright (I used timers to increase or decrease the offset incrementally), however I couldn’t find a way to set the max scroll offset, so I couldn’t clamp it to only scroll for the contents. It’s kinda hard to explain, but when scrolling down, it’d get to the bottom, then the offset would keep increasing, but nothing would happen visually, so when trying to scroll back up, the offset would decrease, and only when getting back to the point of the last widget in the scroll box will anything happen visually again.
The way I had it set out using the scroll box was a button at the top, and a button at the bottom (not nested inside the scroll box but just sitting on top of it) and would use the hover and unhover events in those buttons to change the scroll offset of the scroll box. Their visibility would get set to collapsed if the scroll offset is = 0, or >= the max scroll offset, the number I couldn’t work out how to get.
Anyway, I’ve tried a new system where I just change the padding of a container holding the scroll box’s contents (no scroll box being used here) in an Overlay when one of the buttons is hovered over, and uses an Animation acting as a Timeline with lerps. This works alright, but would require a lot of additional work to get up to the quality of a default scroll box, like somehow getting the max scroll offset (again, the same problem) and things like that which make this very difficult.
I did try adding all the scroll box’s contents’ sizes (they use size boxes) and padding vertically to get a max scroll offset, but this didn’t work, especially because I’m using a Wrap Box with four items in each row, so I really need to do some sort of For Every 4 Items loop instead for this to really work.
Sorry for the long post, but I’ve been stuck wondering and experimenting with this problem for a long while now, and decided I should ask on the forum as I’m not getting anywhere with it myself.