viewport-position-change-hook (4 args)

This hook is invoked whenever the viewport position is changed.\n\ It is called with four arguments, all integers. The first two are \n\ the x and y coordinates of the new viewport position in pixels and\n\ the second two are the change in x and y from the previous position.