I've looked at the patch, but I don't want to put it in CVS until
someone can explain the code:

        if (is.ns4 && is.platform=="other" && type=="mousedown") {
                if (dynobject.dbltimer!=null) {
                        evt.type=type="dblclick";
                        evt.bubble = true;
                        realsrc.invokeEvent(type,evt);
                }
                else dynobject.dbltimer=setTimeout(dynobject+'.dbltimer=null',300);
        }

There's no dynobject object created before this time.  Also, why would
you want to share the doubleclick timer with all dynlayers.  It may
fix the problem, but I think it probaly does so by chance.

The problem could be that the 'this' in EventMethod is not a dynlayer
and does not have a valid toString method.  The this in that code
should probaly be replaced with realsrc.

-- 
Robert Rainwater


On 5/22/2001, 1:52:16 AM EST, Richard wrote about "[Dynapi-Dev] Re:  Latest snapshot 
bugreport":

> Hi,
> That's great, now a few on the Mac, and we know where we are.

> Have you tried to apply the (maybe) patch I posted at sourceforge?
> This should stop al those mouse.js line 128 errors.
> http://sourceforge.net/tracker/index.php?func=detail&aid=425303&group_id=575
> 7&atid=105757

> It should also help this double-click issue.

> We know the key-events will never work, not implemented on Linux.
> Maybe best if this was noted on the example.

> Pushpanel using another's Labels can be regarded as normal I think, it's not
> supposed to make a new instance of the label.
> A little unlucky sort of example though, I also thought something was wrong.
> What we did find is that two pushpanels share each others events, because
> they are inheriting from viewport, instead of dynlayer - something to fix.

> And button image not working should be helped by refreshing the browser, -
> this is a problem with Dynimage I think.
> (maybe if we change the img.complete to an img.onload handler it might
> actually preload the image, and then show them)

> Richard

> ----- Original Message -----
> From: "Robelix" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: 22 May, 2001 00:51
> Subject: [Dynapi-Dev] Re: Latest snapshot bugreport


>> I tested the latest CVS snapshot with Linux:
>>
>> NS 4.76 (rpm from Red Hat update server), Linux kernel 2.4.2, Xfree 4.03
>>
>> dynapi.api.delete:
>>   layers are not removed when deleting, but they are moved at other
>>     position when creating a new one.
>>
>> dynapi.event.dragevent:
>>   syntax error in dynapi.event.mouse.js line 128 when starting dragging
>>     or klicking anywhere
>>   dragging fires "doubleclick" when starting to move and "click" after
>>     releasing mouse button
>>   click and doubleclick fire both events "doublecklick" and "click"
>>     (in this order)
>>
>> dynapi.event.keyevents:
>>   does not work
>>   syntax error in dynapi.event.mouse.js line 128 after klicking anywhere
>>
>> dynapi.event.mouseevents:
>>   klick fires "double-click"
>>   error message: "missing ] after element list" in mouse.js line 128
>>   middle button is detected, but ns tries to load the content of the
>>   clipboard as url after releasing button
>>   (the usal behavior of ns-linux - cut'n'paste in in linux just
>>   selecting text w/ left button and pasting w/ middle button - may
>>   sound strange first, but if you are used to this you don't want to
>>   miss it any more)
>>
>> dynapi.gui.loadpanel:
>>   again the "missing ] "-error
>>   "attempt to access nonexistent slot 0 of layers[] array" in
>>     loadpanel.js line 68, after selecting "use ILayer"
>>
>> dynapi.util.imganim
>>   everything stops after selecting loops off
>>
>> dynapi.ext.inline, dynapi.gui.button, dynapi.gui.label,
>> dynapi.gui.list, dynapi.gui.pushpanel, dynapi.gui.scrollbar,
>> dynapi.gui.scrollpane, dynapi.gui.viewport:
>>   works, but again the "missing ] after element list" in mouse.js
>>
>> Mozilla m18 Gecko/20000828 (rpm from Red Hat 7 CD),
>>  Linux kernel 2.4.2, Xfree 4.03
>>
>> dynapi.event.dragevent
>>   doubleclick fires "click"
>>
>> dynapi.event.keyevents
>>   does not work
>>
>> dynapi.event.mouseevents
>>   double-right-click and double-middle-click fires "doubleclick"
>>     (wanted?)
>>   unlike ns4 pastes clipboard only to url if middle-click not in the
>>     layer
>>   unlike ns4 shows context-menu not on right-click in layer
>>
>> dynapi.gui.button
>>   buttons are smaller than contents, some arrows lie besides the button
>>
>> dynapi.gui.buttonimage
>>   nothing appears, not even errors
>>
>> dynapi.gui.dynimage
>>   when auto resize is on the image disappears
>>
>> dynapi.gui.pushpanel
>>   when loading label to one panel, the content of the other one
>>     disappears
>>
>> dynapi.gui.scrollbar
>>   the vertical and horizontal bar do not appear, the box works
>>
>> dynapi.gui.scrollpane
>>   the scrollers do not appear, just the arrow-images
>>
>>
>> Have a nice hacking!
>> --
>> Roland "Robelix" Obermayer
>> Authorisierter Nichtdenker
>> http://www.robelix.com
>> [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
>> [EMAIL PROTECTED]
>> Fon: 0699/11542243
>>
>> --
>> The best thing to do with a windows-pc:
>> Drag'n'Drop!
>>
>> _______________________________________________
>> 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



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

Reply via email to