Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Grab and scroll - like in Acrobat


Message #1 by "Alex Shiell, ITS, EB, SE" <alex.shiell@s...> on Wed, 18 Dec 2002 11:56:00 -0000
	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

  Return to Index