Fixes bug with Chrome: slow dragging or crash when very big text