fdo#68961: Check visible range during scrolling, and re-paint if necessary.

Change-Id: I47383cc0c4cf0ec48ce621ba5acac33db44ba313