fix #1789: remove call to invalidate in onScroll callback