I just realized that more than MATE Terminal is affected. For example, if I'm using firefox on a long web page, click the scrollbar and quickly scroll through the page, then sometimes it behaves like after a bit I've released the mouse button: Instead of scrolling, the mouse (which is now outside of the scroll bar area) starts highlighting text instead.