> You can only accomplish this with css to my knowledge: > I really think this is what the DOM Range API was designed for. The technique I mentioned above is what I used in Lasso. I call it on every mousemove. If I am correct this catches the browser before the redraw. I just played around with:
http://www.nwhite.net/2009/02/09/advanced-ui-component-using-rubberband-and-draggroup/ in IE6, FF3 and Safari both mac and pc and I can't see the selection. Sebastian is definitely the expert on Range he might be able to offer more insight. > > -moz-user-select: none; /* mozilla browsers*/ > -khtml-user-select: none; /* webkit browsers*/ > > You can also deselect the text (I think that element.focus() will do it), > but the user will see selection briefly. > > On Wed, Aug 26, 2009 at 10:06 AM, Eneko Alonso <eneko.alo...@gmail.com>wrote: > >> I would love to know that. It's specially annoying on sliders, when the >> user clicks next multiple times and the text and images get selected. >> >> >> >> On Wed, Aug 26, 2009 at 7:38 AM, ksamdev <ksam...@gmail.com> wrote: >> >>> >>> Hi, >>> >>> $( 'my_table_row').addEvent( 'dblclick': function( _event) { >>> _event.stop(); >>> >>> console.log( 'double click'); >>> }); >>> >>> Unfortunately on double click browser still performs default text >>> select. How to disable it? >>> >>> Checked in Safari 4, Firefox 3. Both have this problem. >> >> >> >