On 1/17/2001, 10:00:38 PM EST, Richard wrote about "[Dynapi-Help] dynapi ...":

> Hi,
> Two more things I found:
> Would you consider applying the following changes to pathanim.js, 

> PathAnimation.prototype.stopAnimation = function (notinvoke) {
>         if (this.pathPlaying && this.pathPlaying.resets && !this.cancelThread && 
>this.dlyr!=null) this.dlyr.moveTo(this.pathPlaying[0],this.pathPlaying[1]);
>         this.stop();
>         if (this.dlyr != null){
>                 delete this.pathPlaying;        // only deletes unstored path   
>//moved up 2 rows
>                 this.playing = false;                                           
>//moved up 2 rows
>                 if(!notinvoke){                 // if this.stopAnimation(true)== no 
>onpathstop
>                         if (this.dlyr != null)this.dlyr.invokeEvent("pathstop");
>                 };
>         };
> };

I added a noevt parameter to stopAnimation and playAnimation in CVS.
To keep it consistent with the other noevt functions it works like
this:
stopAnimation() - invokes event
stopAnimation(false) - does not invoke event

> The second point is text selecting during scrollbar-drag. In 
>"dynapi.gui.scrollbar.html" this is very obvious if your mouse leaves the large 
>scroll square.
> If you put Michael Burges' code:
>     if (is.ie) document.body.onselectstart = function() { return false }
> directly in your document, there is no text selecting, but I haven't found a way to 
>incorporate it in the widget, and have text selectable again after the scroll with 
>this line:
>     if (is.ie) document.body.onselectstart = null
> the selecting/not_selecting part works fine, but I can't get any eventlistener in 
>scroll.js to activate/de-activate them correctly each time.

Have you tried putting this in DragEvent.lyrListener.onmousedown after
lyr is defined:
  if (is.ie) lyr.doc.body.onselectstart = function() { return false }

Then in DragEvent.docListener.onmouseup after lyr is defined:
  if (is.ie) lyr.doc.body.onselectstart = null

I believe these lines were in the DragEvent code once before, so there
may be a problem with it.

-- 
// Robert Rainwater



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

Reply via email to