extras/html: Fixed shaky text selection with new TextExtent2()