I use multiple displays, and often find the mouse pointer moving to the other display when going to the scroll bar or pressing the close button on an application, for example.
Is it possible to make the mouse "stick" to one display? To see what I mean, you could try to slowly drag a window to a side of your display. It will stop when the edge of the window touches the edge of the display for a little while, unless you push it further. I essentially want this behavior for my mouse pointer.
I found something similar to this for Windows, but unfortunately that's for Windows, not macOS where I need it!