|
From: Brandon M. <bnd...@ho...> - 2000-12-09 00:30:57
|
Why not just disable selection events all together. It was done in the
dragEvent object way-back when.
Simply put:
if (is.ie) // Prevents text selection when dragging.
document.onselectstart = function () { return false; };
That stopped IE from selecting other text on the screen when a layer was
being dragged.
easy enough to redirect the selectstart of the target object to either
click, or simply return false.
I haven't had time to test this, but it seems like a way to solve the
selection problem.
----- Original Message -----
From: "Scott Andrew LePera" <sc...@sc...>
To: <dyn...@li...>
Sent: Friday, December 08, 2000 6:37 PM
Subject: [Dynapi-Dev] Label text selection
> There's a small snag in Label. In IE, when you use setSelectable to
> prevent text from being selected with the mouse, you're also cancelling
> the browser event. This can also cancel events on the label itself.
> For example, if you build a list item out of a label with rollover color
> change events, sometimes the label text will cancel the onmouseout
> event. If you mouseover the list fast enough you may end up with
> several items stuck in the rollover position. This could cause problems
> with other widgets that use Label.
>
> In light of this, I'm wondering if we should restore the optional
> addCover() method that uses a physical layer to cover text. If you
> don't need it, just use setSelectable.
>
> --
> scott andrew lepera
> -----------------------------------
> web stuff: www.scottandrew.com
> music stuff: www.walkingbirds.com
> _______________________________________________
> Dynapi-Dev mailing list
> Dyn...@li...
> http://lists.sourceforge.net/mailman/listinfo/dynapi-dev
|