1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-23 22:36:32 +02:00

Desktop: Allow electron flag to disable smooth scrolling (#6712)

This commit is contained in:
José Rebelo
2022-08-06 11:01:59 +01:00
committed by GitHub
parent d326700d32
commit bd5ce114a1

View File

@@ -277,6 +277,13 @@ export default class BaseApplication {
continue;
}
if (arg === '--disable-smooth-scrolling') {
// Electron-specific flag - ignore it
// Allows users to disable smooth scrolling
argv.splice(0, 1);
continue;
}
if (arg.length && arg[0] === '-') {
throw new JoplinError(_('Unknown flag: %s', arg), 'flagError');
} else {