To visually enable / disable custom scroll buttons depending on whether there is still scrollable area in the respective direction the actual overflow on the respective edge needs to be detected.