by timmorgan · 16y ago · 0 comments
Though, the common problem I've seen with interactive timelines like this is that the text get selected when I move it back and forth. I wanted to use the SIMILE Timeline widget awhile back for a corporate project, and found that IE (any version) had the text-select problem, which was problematic for the "enterprise" standard browser.
Now I'm even experiencing it in Firefox. Seems like we've (the web dev community) been fighting with text selection problems for years and still haven't found a good solution to turn it off when dragging? Bummer.
Whenever you release the mouse, an invisible text box will be selected via some JavaScript, which deselects any text that was selected while dragging it. It's not perfect, but it works pretty well.
RE: Firefox text selection -- there is a browser-specific CSS rule that controls for that: -moz-user-select
https://developer.mozilla.org/en/CSS/-moz-user-select
Of course, this has no effect in other browsers, like Opera which I'm using right now.
In the past, I've been able to circumvent this problem by overlaying any text with a 1x1 transparent gif which captures the click before it can hit the text. Not sure what web devs use to deal with this problem these days.