Quote Originally Posted by covoxer View Post
Why have you disabled onmousemove handler?
Hi John,
For starters - this first upload is done late last night and at this state I am only trying to get an overview of what is going on in the Xara javascript library.

I find it bad practice to attach code to global code, unless you cannot do it smarter. Every time the mouse is moved a call is made to the global eventhandler (potentially slowing the page down).

I expect that the elements on the page which needs attention should hook onto events as a situation occures. Like if you move over an element which shows a popup, at that time register a mousemove listener. When the mousemove listener is no longer relevant for that element, remove it again.

Oh and please let me stress that I have not tried to do such collaborative coding before accross the web. I do not expect the discussion on how it should be done/implemented to take place here. Anyone have any experience how to do that?