mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 03:22:27 +02:00
Fix wheel touch interference with mac camera orbit
This commit is contained in:
parent
1338cbd943
commit
e06e1bb377
1 changed files with 5 additions and 2 deletions
|
@ -128,9 +128,12 @@ void KeyboardMouseDevice::mouseMoveEvent(QMouseEvent* event) {
|
|||
}
|
||||
|
||||
bool KeyboardMouseDevice::isWheelByTouchPad(QWheelEvent* event) {
|
||||
#ifdef Q_OS_MAC
|
||||
return false;
|
||||
#endif
|
||||
QPoint delta = event->angleDelta();
|
||||
int deltaValueX = abs(delta.manhattanLength());
|
||||
int deltaValueY = abs(delta.manhattanLength());
|
||||
int deltaValueX = abs(delta.x());
|
||||
int deltaValueY = abs(delta.y());
|
||||
const int MAX_WHEEL_DELTA_REPEAT = 20;
|
||||
const int COMMON_WHEEL_DELTA_VALUE = 120;
|
||||
if (deltaValueX != 0) {
|
||||
|
|
Loading…
Reference in a new issue