Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix for Bug 370548 - Text selection flickers / goes awry when the mou…
…se pointer goes outside of the view
  • Loading branch information
mihaisucan committed Feb 3, 2012
1 parent 1d11501 commit 69f5b84
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -9,7 +9,7 @@
* Contributors:
* Felipe Heidrich (IBM Corporation) - initial API and implementation
* Silenio Quarti (IBM Corporation) - initial API and implementation
* Mihai Sucan (Mozilla Foundation) - fix for Bug#334583 Bug#348471 Bug#349485 Bug#350595 Bug#360726 Bug#361180 Bug#362835 Bug#362428 Bug#362286 Bug#354270 Bug#361474 Bug#363945 Bug#366312
* Mihai Sucan (Mozilla Foundation) - fix for Bug#334583 Bug#348471 Bug#349485 Bug#350595 Bug#360726 Bug#361180 Bug#362835 Bug#362428 Bug#362286 Bug#354270 Bug#361474 Bug#363945 Bug#366312 Bug#370548
******************************************************************************/

/*global window document navigator setTimeout clearTimeout XMLHttpRequest define DOMException */
Expand Down Expand Up @@ -4683,7 +4683,10 @@ define("orion/textview/textView", ['orion/textview/textModel', 'orion/textview/k
break done;
}
}
offset += nodeLength;
var childRect = lineChild.getBoundingClientRect();
if (childRect.right <= x) {
offset += nodeLength;
}
lineChild = lineChild.nextSibling;
}
if (dummy) { clientDiv.removeChild(dummy); }
Expand Down

0 comments on commit 69f5b84

Please sign in to comment.