mirror of
https://github.com/wekan/wekan.git
synced 2025-12-24 03:10:12 +01:00
Add settings for mouse wheen scroll inertia and scroll amount.
For example: sudo snap set scrollinertia='200' sudo snap set scrollamount='200' Thanks to danger89 and xet7 ! Related #2949
This commit is contained in:
parent
965c3fb07f
commit
9d13001b90
10 changed files with 70 additions and 5 deletions
21
server/scroll.js
Normal file
21
server/scroll.js
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
Meteor.startup(() => {
|
||||
// Mouse Scroll Intertia, issue #2949. Integer.
|
||||
if (process.env.SCROLLINERTIA !== '0') {
|
||||
Meteor.settings.public.SCROLLINERTIA = parseInt(
|
||||
process.env.SCROLLINERTIA,
|
||||
radix,
|
||||
);
|
||||
} else {
|
||||
Meteor.settings.public.SCROLLINERTIA = 0;
|
||||
}
|
||||
|
||||
// Mouse Scroll Amount, issue #2949. "auto" or Integer.
|
||||
if (process.env.SCROLLAMOUNT !== 'auto') {
|
||||
Meteor.settings.public.SCROLLAMOUNT = parseInt(
|
||||
process.env.SCROLLAMOUNT,
|
||||
radix,
|
||||
);
|
||||
} else {
|
||||
Meteor.settings.public.SCROLLAMOUNT = 'auto';
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue