Fixed! I have changed lines 34 and 35 in src/lib/dynapi/api/events.js from:

  this.x=is.ie?e.offsetX:e.layerX;
  this.y=is.ie?e.offsetY:e.layerY;

to:

  this.x=is.ie?e.x-this.src.getPageX():e.layerX;
  this.y=is.ie?e.y-this.src.getPageY():e.layerY;

Now the setEvent function sets the correct x/y values. This fix should work
with any IE version (tested IE 5.x on Win98 & Win2K).

Regards,

Christof


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Christof
> Pohl
> Sent: Tuesday, February 27, 2001 2:56 PM
> To: [DynAPI Help] Mailingliste
> Subject: RE: [Dynapi-Help] Strange results from MouseEvent.getX() in
> IE5.5 SP1 - Win2K
>
>
> Hm, the current CVS version doesn't have a fix for this error. I
> have tried
> IE5.5 on Win98 - same behaviour. :-\
>
> I think I will have a look at the code...
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Christof
> > Pohl
> > Sent: Tuesday, February 27, 2001 1:39 PM
> > To: [DynAPI Help] Mailingliste
> > Subject: RE: [Dynapi-Help] Strange results from MouseEvent.getX() in
> > IE5.5 SP1 - Win2K
> >
> >
> > Hm, I think I'm using the CVS version from February 21st (or so).
> > I will try
> > out the current CVS version (and have a look at the changes there).
> >
> > Thanks for your input! :-)
> >
> >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]]On Behalf Of Michael
> > > Pemberton
> > > Sent: Tuesday, February 27, 2001 1:18 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: [Dynapi-Help] Strange results from MouseEvent.getX() in
> > > IE5.5 SP1 - Win2K
> > >
> > >
> > > which version of the api are you using?
> > > there have been a few changes made recently that attempt to fix this.
> >
> >
> > _______________________________________________
> > Dynapi-Help mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-help
> >
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to