You can toggle between moving the bottom edge and right edge by keeping the mouse button or touchpad engaged and pressing the Shift key. A shortcut command introduced back in MacOS Mojave in 2018 ...