Thank you so much! This worked perfectly.
Could you also tell me how to do this in Wrath Classic?
I tried this:
Lua Code:
local ScrollBar = AchievementFrameAchievementsContainer.scrollBar
ScrollBar:RegisterCallback(ScrollBar.Event.OnScroll, function(_,scrollpercent)
print(scrollpercent)
end)
But AchievementFrameAchievementsContainer.scrollBar does not seem to have Event.
In general: What did you do to see all the scripts of the scroll bar/box?
Could you recommend a resource where I could learn about the details of CallbackRegistries?