allow the user to cancel any animations due to momentum

If the user code makes changes to the plot while momentum is still
occurring things are not happy. I don't remember the details right now
but prior to modifying the plot I invoke cancelAnimations and the race
condition no longer occurs.