Title: Re: [Dynapi-Dev] Mouse Events in IE
couldn't that be solved by catching the onmouseout-event of the scrollbar-knob to disable the drag?
Von: "Richard Bennett" <[EMAIL PROTECTED]>
Antworten an: [EMAIL PROTECTED]
Datum: Fri, 16 Mar 2001 14:50:43 +0100
An: <[EMAIL PROTECTED]>
Betreff: Re: [Dynapi-Dev] Mouse Events in IE
Ahh, so that should solve the problem of the "sticky" scroll-bar-knobs.
Maybe you could submit it as a patch so it doesn't get forgotten.
Richard.
----- Original Message -----
From: Michael Pemberton <mailto:[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Friday, March 16, 2001 1:56 PM
Subject: [Dynapi-Dev] Mouse Events in IE
I was getting pissed off that IE detected the location of a 'mouseup' event in the current location and NS used the same location where the 'mousedown' event was triggered.
Here's some code that stores the mousedown source and redirects the mouseup event so that both browsers now act in the same fashion.
DynEvent.focus=src; // add this as a static property of the DynEvent
// add the following code just before the "src.invokeEvent(type, evt);" line
if (is.ie) {
if (e.type=='mousedown') DynEvent.focus=src;
else if (e.type=='mouseup' && DynEvent.focus!=null)
evt.src=src=DynEvent.focus;
};
Does anyone think this is worth placing in CVS?
--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010