Window edge border collision preventing movement