Quote:
Originally Posted by cohler
JS_Window_SetScroll and JS_Window_GetScroll don't seem to work at all on Mac (at least for the main HWND; I haven't tried it on other windows).
CSurf_OnScroll seems to work but it allows scrolling only in increments of 8 pixels.
Any solution for this?
|
I quickly checked the scrolling functions on my High Sierra x64, REAPER v6.04, and they seem to work fine on my system. Please check the following:
* To scroll a child window, you must pass the HWND of that child window, not the parent window. In your case, I assume that you are trying to scroll the arrange view, which is a child window with ID = 1000, IIRC.
* REAPER doesn't like scrolling outside the boundaries of the project, so if the script tries to do that with the SetScrollPos function, REAPER will ignore the request.
(N.B: The scrolling functions can only politely request a window to scroll, and it is up to the window to accept the request or not.)