Changing State in onMouseMove preventing onMouseUp from firing
I’m creating a chessboard where I’d like to being able to drag and drop the pieces between squares of the chessboard, as well as move them with point and click (click origin square once, click target square once). In order to do this I’m leveraging onMouseDown, onMouseUp, and onMouseMove. These each have handler functions attached to them. onMouseDown and onMouseUp are attached to the individual square components of the chessboard so that I can get information about which square I’m clicking when I use them. onMouseMove on the other hand is attached to the chessboard itself.