Selection is based in DOM tree, so if you select text from "outise region" to "inside region" the highlighted area is exactly the opposite to what the user is actually selecting.