FIX: invert touchpad move direction

Change-Id: Ic6be977828a1c82a56205c06d4ab63c05241a090
This commit is contained in:
chunmao.guo 2022-07-27 16:16:43 +08:00 committed by Lane.Wei
parent 396918f21f
commit 0ac982b8c2
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ wxEvtHandler * _gestureHandler = nullptr;
{
if (_gestureHandler && event.hasPreciseScrollingDeltas) {
wxPanGestureEvent evt;
evt.SetDelta({(int)[event scrollingDeltaX], -(int)[event scrollingDeltaY]});
evt.SetDelta({-(int)[event scrollingDeltaX], (int)[event scrollingDeltaY]});
_gestureHandler->ProcessEvent(evt);
} else {
[self scrollWheel2: event];