Exactly, that's the job of the programmer (webmaster) to carefully
use event handlers. If he assigns event listeners to objects without
thinking who's going to capture it, that's his problem.
> -----Message d'origine-----
> De : alex.shiell@s... [mailto:alex.shiell@s...]
> Envoy=C3=A9 : vendredi 20 d=C3=A9cembre 2002 13:59
> =C3=80 : javascript
> Objet : [javascript] Re: Grab and scroll - like in Acrobat
>
>
> The problem is that the event is triggered by whatever
> element you click
> on, so if they click in the table, its the ondrag method of
> that table
> cell that is called...
>
> > I can't find any event called onDrag, but suppose it's
> > so, maybe
> > you
> > could attach it to document :
> > document.ondrag =3D3D yourGrabAndScrollFunction