[Laszlo-dev] For Review: Change 20090603-hqm-U Summary: fix for text selection in DHTML
Henry Minsky
hminsky at laszlosystems.com
Sat Jun 6 09:27:05 PDT 2009
>
> And one bug in IE:
> Also open the component sampler, mouse down and then move cursor while
> still holding the mouse button.
> Expected: no text selection
> Actual: text selection for all text elements
> Apparently global onselectstart and ondrag were canceled in
> "LzInputTextSprite.js" to avoid this behaviour, cf. [3].
>
>
But having that code in LzInputTextSprite:
document.onselectstart = LzTextSprite.prototype.__cancelhandler;
document.ondrag = LzTextSprite.prototype.__cancelhandler;
causes text selection to stop working in globally in IE7, and Safari/OSX.
(Actually, inputtext selection still works in Safari for some reason with
this code, but
regular selectable non-input text cannot be selected )
Do you have any ideas how we can keep text selection working in IE7/Safari
but
not have the unwanted selection of everything?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20090606/936dd935/attachment.html
More information about the Laszlo-dev
mailing list