Fix for Issue #798

buttonclick used page position of the PanZoomBar but clientX/Y (relative to the viewport) from the event object. The fix is to subtract page scroll from button position.