On Mac why is wheel down actually wheel up

Asked by Marc Summers

I have a Macintosh Mojave

Since Lion OS the developers decided to change the wheel up and down
and reverse them.

Well, if you go to preferences --> Mouse
you will see that you can UNCheck the Scroll direction: Natural

But the problem is that the above, does not work
when I issue a wheel(WHEEL_DOWN,8) command in the Sikuli Python Script
on the Mac system,
it doesn't wheel down, it wheels up

The Sikuli tests were originally developed on Windows 10 and I am porting them to Mac.

Is there any way to fix this other than having to go back through
40,000 lines of code.

Thanks a ton for your help. :)

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Good point ;-)

I will add a
Settings.WheelNatural

with a default of True (WHEEL_UP moves content towards top and reveals content at the bottom == Mac-Natural)

Setting it to False will reverse it and should meet your requirement.
You have to add it at the start of every main script, whose run needs it.

Be aware, that currently still the most Settings keep their value in the IDE until changed again - there is no complete reset to defaults neither at script start nor at the end (open request).

The fix will be available asap (build 113+)

Revision history for this message
RaiMan (raimund-hocke) said :
#2

should be available now.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

fixed