Fix addition/removal of middle mouse button input not always working (#976)

This commit is contained in:
toasted-nutbread 2020-10-31 16:33:48 -04:00 committed by GitHub
parent 21cae0e38e
commit 164c7b4375
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -206,7 +206,7 @@ class ScanInputsSimpleController {
const includeValues = this._splitValue(include); const includeValues = this._splitValue(include);
const excludeValues = this._splitValue(exclude); const excludeValues = this._splitValue(exclude);
if ( if (
(includeValues.length === 0 || (includeValues.length === 1 && includeValues.includes('mouse2'))) && (includeValues.length === 1 && includeValues[0] === 'mouse2') &&
excludeValues.length === 0 excludeValues.length === 0
) { ) {
return i; return i;