dwieeb/jquery-textrange — pull request #6 by dwittner (2013-11-13 15:38:38+00:00)
Title: Update jquery-textrange.js

Call focus function of element in function 'get' for IE only, if it's not the active element yet.

Calling the focus function of the element every time you call the 'get' function causes a ver y unpleasant behaviour in IE8. You can reproduce it with the textarea of your [demo](http://dwieeb.github.com/jquery-textrange/). If you reduce the width of the browser until you see the textarea only partially and type one character after another, the content of the page will be scrolled automatically to the right at the moment you reach the right border of the page. But the call of the focus function causes the page to be scrolled to the left edge of the textarea. Immediately after that jump to the left side, the content is scrolled back to the cursor position, which leads to a flicker of the page every time you type a character.

Maybe it could be useful to only call the focus function in the other functions too.