updated demo to check if mouse coords changed