Hi See fiddle: http://jsfiddle.net/woomla/agRdL/5/.
Maybe my question is not strictly related to mootools, but you guys rock! I want to start some action after the mouse is clicked on a div and moved some pixels. This div contains other elements like div's and image's. If you click on the image, the mousemove is not always fired. That's my problem. The example works like this: If clicked anywhere in div1 (or its children), the mousemove, mouseup and mouseout events are added to div1. Mouseup removes these events, mouseout checks if the destination is outside div1 and removes the events if so. Mousemove checks if the distance is large enough and then removes the events. Here is where the real action is going to happen. The button is to toggle the image. When not clicked on the image, everything works fine. When clicked on the image, several mouse moves are logged, but then logging stops. Also mouseup is not fired always. The strange thing is that sometimes these events are fired, sometimes not. That also depends on the browser (Firefox, chrome). What's wrong with my setup? Is it possible to receive al mouse events when the mouse is catched by the img element? W.
