I should post a note too, since I originally filed that feature request ( http://jquery.com/dev/bugs/bug/479/ ). Yes, in my application, you're dragging around "solid objects," as it were, and accidental selections in IE made everything look really weird. I agree, though, that the behaviour should be if(handle) handle.unselectable, else draggable.unselectable. (Thanks for your work, Paul.)
Paul Bakaus wrote: > > Hi there! > > Since I'm writing the new draggables, I looked up many many solutions > around that problem. > > It's a tough problem to fix text selection in a cross-browser matter, > because you have strange side effects. For example, if you do > ondragstart/onselectstart in IE, you select during drag if you do not > return false in mousedown/mousemove. But then, if you return false in > IE in these events, you cannot drag *out* of the browser window and > back anymore. It's a bit hard to explain, but if it has some need to > you, I can do a demo. > > -Paul > > > > On 1/23/07, Su <[EMAIL PROTECTED] > wrote: > > > > Setting a div as draggable appears to kill text selection in IE6 (I > > > haven't checked 7 yet). Is there by any chance a way around this? > > > > If it helps anything, there is a handle specified, not the whole > object, > > > and the actual content is within a separate div inside, more or less > like > > > so: > > > > > > > > <div class="draggable"> > > > > <div class="handle"> > > > > <h2>This is the handle</h2> > > > > </div> > > > > <div class="body"> > > > > <p>Stuff goes here. Becomes unselectable</p> > > > > </div> > > > > </div> > > > > -- View this message in context: http://www.nabble.com/Draggables-preventing-text-select-in-IE-tf3077145.html#a8656844 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
