I just noticed that I have been inconsistent in my declaration and usage of onMouseMove. I have now consistently used the parameter drawDataForBezierCurve.  Miraculously, it worked before I made this change.  I don't know why.