For any one encountered this issue, I have found one cause and the solution.
The situation for me is: this issue does not occur to me before Matlab 2017b, so previously I have to switch back to 2017a to avoid it. But when I am installing the newer versions, I found that the window jumps back one line or two after I lift my finger from the trackpad after scrolling, even when I am selecting which product to choose ! So I think it is not related to Matlab itself (it has not been installed), but it is related to the JRE shipped with Matlab.
After installing the newest Java version, and use 'export MATLAB_JAVA='the system jre path' ' in the terminal to let Matlab use the system JRE instead of the one shipped with it, and start the matlab.app from the terminal (you can make it permanent so you don't need to run everything from terminal), this issue is GONE !
However, it is stated by Matlab that only the shipped JRE is fully supported and some libraries might not work properly using other JRE, but I think this 'window jumping back issue' is much more frustrating than 'library not supported'.
The cause of this problem in your case might be different from mine, but you can give it a try first. Hope Matlab can fix this bug in future.
I am running Mojave by the way.