viewer: use coordinates of button pressing (instead of releasing) in actions