mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-10-09 12:51:50 +08:00
fix(swipe): Count '' as "natural scrolling enabled" on Mac OS X
This value is returned if the user has never touched the system preference option at all.
This commit is contained in:
parent
0c320d3a28
commit
428d37b4fe
1 changed files with 1 additions and 3 deletions
|
@ -38,9 +38,7 @@ if (process.platform === 'darwin') {
|
||||||
if (err !== null) {
|
if (err !== null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (stdout.toString().trim() === '1') {
|
SwipeInverted = (stdout.toString().trim() !== '0');
|
||||||
SwipeInverted = true;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
} else if (process.platform === 'win32') {
|
} else if (process.platform === 'win32') {
|
||||||
// Currently does not matter because we don't support trackpad gestures on Win.
|
// Currently does not matter because we don't support trackpad gestures on Win.
|
||||||
|
|
Loading…
Add table
Reference in a new issue