You could use my usual method..
Simple Algorithm below:
on dragmove {
if obj.dragmoving {
return; // if we are doing a drag loop we can cancle this drag loop
}
obj.dragmoving = true;
dragmove-code;
obj.dragmoving = false;
}
The idea is to prevent the drag code from being executed if it is already in
the process of being executed.
On my old demo this smoothed draggin out a LOT especially on a slower
machine we test with.
----- Original Message -----
From: "Richard Bennett" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 29, 2001 11:51 PM
Subject: Re: [Dynapi-Help] Re: Resize issues...
> Hi
> Yeah, the problem was in dragevent.js line 26,
> e.cancelBrowserEvent();
>
> had been changed to :
> if (is.def) e.cancelBrowserEvent();
>
> We had done this because NS4 was loosing it's native events.
> If you apply the ns4 events fix detailed by Chris Williams, the
> if(is.def)
>
> is no longer needed, and text is no longer selected under ns4 with
> scrollbars, or dragging.
>
> I had tried something like your dragging suggestion inside dragevent.js,
> replacing line 101 with:
> setTimeout(lyr+'.invokeEvent("dragmove");',50)
>
> Which gives a kind of slow-motion effect to anything under ondragmove. Not
> entirely satisfactory.
> There seems to be more going on in NS6, somethings drag very easily, and
> some are very jerky.
> Maybe something to do with event bubbling.
>
>
> Richard.
>
> ----- Original Message -----
> From: "Gabriel Suchowolski" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: 29 May, 2001 21:56
> Subject: [Dynapi-Help] Re: Resize issues...
>
>
> > ** Richard **
> >
> > >Another thing, since DynAPI-X, NS4 suffers from horrible text selecting
> > when
> > >there are scroll-bars on the page , it seems the mousedown bubbles to
the
> > >page, but the mouseup doesn't.
> >
> > I found the same in a scroll addon I do it for loadlayer (still working
on
> > it for public release) but I resolve using e.cancelBrowserEvent() for
the
> > mousedown and NS4 do not make any selection of text.
> >
> > **Another thing**
> >
> > Also a found that NS4 and NS6/Mozilla force a lot the browser and slow
it
> a
> > lot when you make something like...
> >
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> -
> > (schemathiccode)
> > eventfns = new EventListener(this);
> > eventfn.ondrag = = function (e) {
> > ...
> > ( code that make changes in visible layers )
> > ...
> > }
> > mydraglayer..addEventListener(eventfns);
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> -
> >
> > like is normaly used on a scroll widged. This method force the browser
(in
> > NS4/MOZ/NS6) to update the content to many times that they can't do it
> > speedy.
> >
> > To solve this I use another method less CPU intensive that let the
browser
> > refresh the content better
> >
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> -
> > (schemathiccode)
> > eventfns = new EventListener(this);
> >
> > mydraglayer.myfunctionthatupdatealotofthingsinthescreen = new function
()
> {
> > ...
> > ( code that make changes in visible layers )
> > ...
> > }
> >
> > mydraglayer.eventfn.ondragstart = function (e) {
> > var o = e.getTarget();
> >
> >
>
o.dragInterval=setInterval(o.toString()+".myfunctionthatupdatealotofthingsin
> > thescreen()",50)
> > e.setBubble(false);
> > }
> >
> > this.dragCTevents.ondragend = function (e) {
> > var o = e.getTarget();
> > clearInterval(o.dragInterval);
> > e.setBubble(false);
> > }
> >
> > mydraglayer..addEventListener(eventfns);
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> -
> >
> > Gabriel Suchowolski
> > www.microbians.com - [EMAIL PROTECTED]
> >
> >
> > _______________________________________________
> > 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