Fix touch input always being disabled (#772)

This commit is contained in:
toasted-nutbread 2020-09-05 21:44:05 -04:00 committed by GitHub
parent 2f8408ffcc
commit 55770934f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,7 +115,7 @@ class TextScanner extends EventDispatcher {
this._delay = delay; this._delay = delay;
} }
if (typeof touchInputEnabled === 'boolean') { if (typeof touchInputEnabled === 'boolean') {
this._touchInputEnabled = false; this._touchInputEnabled = touchInputEnabled;
} }
if (typeof scanLength === 'number') { if (typeof scanLength === 'number') {
this._scanLength = scanLength; this._scanLength = scanLength;