Hi Tristan,
Yes, I think it is bad to interrupt the mouse down event. Mouse down could be the first step of a zoom, pan, draw a selection box. So changing the cursor in the middle of that behavior is going to be problematic.
I don't know if this will help, but what I do is derive a mouse click by setting a "possibleMouseClick" flag on a mouse down then raise my own click event on a mouse up if the mouse hasn't moved in the interim. This has worked very well for me, and I've had no issues with cursors, redraws, or modes (select, pan, zoom, etc.).
Don
Yes, I think it is bad to interrupt the mouse down event. Mouse down could be the first step of a zoom, pan, draw a selection box. So changing the cursor in the middle of that behavior is going to be problematic.
I don't know if this will help, but what I do is derive a mouse click by setting a "possibleMouseClick" flag on a mouse down then raise my own click event on a mouse up if the mouse hasn't moved in the interim. This has worked very well for me, and I've had no issues with cursors, redraws, or modes (select, pan, zoom, etc.).
Don