ScrollBox scrollbar don't response input when first click

ScrollBox scrollbar don’t response input when first click,response input when second click,the button have is focusable can fix this,and scrollbox miss it.

Any luck figuring this one out?

Incredibly creepy, but I ran into this exact issue yesterday and after googling (which came after much time lost going down a gpt-driven rabbit hole), stumbled on this thread and me asking the same question almost seven years ago! Unfortunately, it’s not surprising the issue still remains but rather the odds of me repeating history like this and even more disturbing is that I can’t at all recall the project I was working on at the time and it’s rare I’m working within UE to begin with, much less to the point to where I would have a somewhat “deep cut” UI-specific concern like this.

Anyway, I wouldn’t have bothered to share this experience except that I did finally come to a solution. Rather than calling SetFocus (or related function) on a non-focusable widget (like the ScrollBox or its containing panel, which solves the problem but generates a warning), call SetInputModeUIOnly (or the ‘GameAndUI’ variant) function instead, passing in the local player controller and ScrollBox as arguments. With that approach, the ScrollBar component of the ScrollBox will work on the first click (what a concept!) and you won’t get any annoying warnings.