aboutsummaryrefslogtreecommitdiff
path: root/ext/js/language
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2024-02-19 07:30:17 -0500
committerGitHub <noreply@github.com>2024-02-19 12:30:17 +0000
commit2da866f982930c76d2317a3be426410683ecf5a2 (patch)
treee77ce545177ba398068cb63037096a56dea04e2c /ext/js/language
parent65fa65fc7765bc9a6557d3ce6f8bdcef5b5e0cf7 (diff)
Update eslint rules (#710)
Diffstat (limited to 'ext/js/language')
-rw-r--r--ext/js/language/text-scanner.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/ext/js/language/text-scanner.js b/ext/js/language/text-scanner.js
index d4caa643..64333093 100644
--- a/ext/js/language/text-scanner.js
+++ b/ext/js/language/text-scanner.js
@@ -542,7 +542,7 @@ export class TextScanner extends EventDispatcher {
const inputInfo = this._getMatchingInputGroupFromEvent('mouse', 'mouseMove', e);
if (inputInfo === null) { return; }
- this._searchAtFromMouseMove(e.clientX, e.clientY, inputInfo);
+ void this._searchAtFromMouseMove(e.clientX, e.clientY, inputInfo);
}
/**
@@ -612,7 +612,7 @@ export class TextScanner extends EventDispatcher {
const modifiers = getActiveModifiersAndButtons(e);
const modifierKeys = getActiveModifiers(e);
const inputInfo = this._createInputInfo(null, 'mouse', 'click', false, modifiers, modifierKeys);
- this._searchAt(e.clientX, e.clientY, inputInfo);
+ void this._searchAt(e.clientX, e.clientY, inputInfo);
}
/** */
@@ -669,7 +669,7 @@ export class TextScanner extends EventDispatcher {
const inputInfo = this._getMatchingInputGroupFromEvent('touch', 'touchStart', e);
if (inputInfo === null || !(inputInfo.input !== null && inputInfo.input.scanOnTouchPress)) { return; }
- this._searchAtFromTouchStart(x, y, inputInfo);
+ void this._searchAtFromTouchStart(x, y, inputInfo);
}
/**
@@ -703,7 +703,7 @@ export class TextScanner extends EventDispatcher {
const inputInfo = this._getMatchingInputGroupFromEvent('touch', 'touchEnd', e);
if (inputInfo === null || !(inputInfo.input !== null && inputInfo.input.scanOnTouchRelease)) { return; }
- this._searchAtFromTouchEnd(x, y, inputInfo);
+ void this._searchAtFromTouchEnd(x, y, inputInfo);
}
/**
@@ -739,7 +739,7 @@ export class TextScanner extends EventDispatcher {
const {input} = inputInfo;
if (input !== null && input.scanOnTouchMove) {
- this._searchAt(primaryTouch.clientX, primaryTouch.clientY, inputInfo);
+ void this._searchAt(primaryTouch.clientX, primaryTouch.clientY, inputInfo);
}
e.preventDefault(); // Disable scroll
@@ -899,7 +899,7 @@ export class TextScanner extends EventDispatcher {
const inputInfo = this._getMatchingInputGroupFromEvent('touch', 'touchMove', e);
if (inputInfo === null || !(inputInfo.input !== null && inputInfo.input.scanOnTouchMove)) { return; }
- this._searchAt(e.clientX, e.clientY, inputInfo);
+ void this._searchAt(e.clientX, e.clientY, inputInfo);
}
/**
@@ -942,7 +942,7 @@ export class TextScanner extends EventDispatcher {
*/
_onPenPointerOver(e) {
this._penPointerState = 1;
- this._searchAtFromPen(e, 'pointerOver', false);
+ void this._searchAtFromPen(e, 'pointerOver', false);
}
/**
@@ -950,7 +950,7 @@ export class TextScanner extends EventDispatcher {
*/
_onPenPointerDown(e) {
this._penPointerState = 2;
- this._searchAtFromPen(e, 'pointerDown', true);
+ void this._searchAtFromPen(e, 'pointerDown', true);
}
/**
@@ -958,7 +958,7 @@ export class TextScanner extends EventDispatcher {
*/
_onPenPointerMove(e) {
if (this._penPointerState === 2 && (!this._preventScroll || !e.cancelable)) { return; }
- this._searchAtFromPen(e, 'pointerMove', true);
+ void this._searchAtFromPen(e, 'pointerMove', true);
}
/**
@@ -967,7 +967,7 @@ export class TextScanner extends EventDispatcher {
_onPenPointerUp(e) {
this._penPointerState = 3;
this._preventScroll = false;
- this._searchAtFromPen(e, 'pointerUp', false);
+ void this._searchAtFromPen(e, 'pointerUp', false);
}
/** */