i would prefer the other way, that ns acts as ie does.
there are situations where it makes a difference if the user releases the
mouse over another layers than it was pressed.
example:
a button that has an some funtionality onmouseup.
if the user presses the mouse over the button and releases it, the onmouseup
fires. fine.
but: if the user presses the mouse over the button and moves it outside of
the button and releases there, the onmouseup-event of the button shouldn't
fire in my opinion (watch how windows and other OS's act, they don't fire if
you move outside a button while mouse is pressed).
an event should fire on the obj it occurs on, always!
i don't know if it's possible to make ns acting as ie does, but i'd prefer
that at least ie acts how it should.
right now i'm having some problems in ns with mouseup/down/over/out events
not occuring at the right place and i'm trying to find a solution.
--
Michael Buerge
>Jordi - IlMaestro - Ministral wrote:
> If I don't receive a large amount of rocks I'll make it into DynAPI X.
> Note that I'm no longer developing the old code. To me it is about dead.
> Michael Pemberton wrote:
>
>> 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
>
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev
>
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev