move to edge works and the code can be used for resize now too, yay