Hi Rolf,

Investigating further it seems that there are no mousemove (and
mouseout) events fired when I click on the image and move the mouse
(drag the image).

I think my question now is how do I prevent the image from being
dragged?

I'll close this issue and raise a new one for that.




On Feb 20, 10:02 pm, Rolf Langenhuijzen <[email protected]>
wrote:
> wow
>
> what is it that you want to achieve in just a simple text? there's so
> much going on...
>
> On Feb 15, 3:52 pm, woomla <[email protected]> wrote:
>
>
>
>
>
>
>
> > 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.

Reply via email to