Please. I'd be interested in seeing this, in case there's a real problem here that I just haven't hit. My particular case is a bit limited and predictable, which I think potentially gives me a bit of safety here. While I do want selection within the "body" of the box, the handle is an image that will be spanning the full width, so if this is what I think, there's little change of a select-drag occuring and leaves me safe(maybe). I figured there was more here than I was seeing, though. *grin*
On 1/26/07, Paul Bakaus <[EMAIL PROTECTED]> 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 2007/1/26, Su <[EMAIL PROTECTED]>: > You rule. Commenting out the two onselect instances(lines 491 & 500) took > care of it, with no (currently) apparent side-effects. > > I'm a bit reluctant to call this a bug without input from the devs, though. > At best it's probably more of a feature request to be able to specify not > just a handle, but a body which can be treated differently. > As far as I can guess, text-select failing is desired, from the perspective > of draggable elements being "physical" objects as a unit and not really > containers for stuff. You can specify a handle, but the rest of the box > isn't really a separate thing. > > Point of all this being that I'm essentially (mis-)using Draggables as a > /very/ rudimentary windowing utility, which I why I needed text selection, > but I'm not sure if it's appropriate to try and wedge that use into what > it's really intended to do. > > But anyway, thanks again. > > > > On 1/26/07, Karl Rudd <[EMAIL PROTECTED]> wrote: > > Looks like a bit of an unwanted "feature" (from idrag.js): > > > > if (window.ActiveXObject) { > > this.onselectstart = function(){return false;}; > > this.ondragstart = function(){return false;}; > > } > > > > I'd file a bug against it. > > > > Karl Rudd > > > > On 1/26/07, Su <[EMAIL PROTECTED]> wrote: > > > Anyone? > > > I don't mean to be that person who gets crabby at their message being > > > ignored, but this is a pretty major consideration, and it seems odd to > me > > > that I can't find reference to it anywhere. > > > > > > On 1/23/07, Su <[EMAIL PROTECTED] > wrote: > > > > Preliminary searching hasn't turned up anything, so sorry if this is a > > > dupe; I'm still digging around. > > > > > > > > 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> > > > > > > > > > > > > > _______________________________________________ > > > jQuery mailing list > > > discuss@jquery.com > > > http://jquery.com/discuss/ > > > > > > > > > > > > > _______________________________________________ > > jQuery mailing list > > discuss@jquery.com > > http://jquery.com/discuss/ > > > > > _______________________________________________ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > > > -- -- Paul Bakaus _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
_______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/