summaryrefslogtreecommitdiff
path: root/ext/bg/js/options.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-09-13 11:33:10 -0400
committerGitHub <noreply@github.com>2020-09-13 11:33:10 -0400
commit5b49cf439866cc742c0cda37eb3d8a7200fc6860 (patch)
tree970e3bc00a0373e675948a5d90f7f5f50ccf921f /ext/bg/js/options.js
parentefd0de6bc070c0c1476fef9d5a5434dbc108901e (diff)
Pointer events support (#819)
* Add option pointerEventsEnabled * Add _pointerEventsEnabled option to TextScanner * Add additional options * Mouse pointer events * Touch pointer events * Pen pointer events
Diffstat (limited to 'ext/bg/js/options.js')
-rw-r--r--ext/bg/js/options.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js
index 3470da58..89538b3e 100644
--- a/ext/bg/js/options.js
+++ b/ext/bg/js/options.js
@@ -505,6 +505,7 @@ class OptionsUtil {
// Updated handlebars templates to include "clipboard-image" definition.
// Added hideDelay.
// Added inputs to profileOptions.scanning.
+ // Added pointerEventsEnabled to profileOptions.scanning.
for (const {conditionGroups} of options.profiles) {
for (const {conditions} of conditionGroups) {
for (const condition of conditions) {
@@ -526,6 +527,7 @@ class OptionsUtil {
for (const {options: profileOptions} of options.profiles) {
profileOptions.general.usePopupWindow = false;
profileOptions.scanning.hideDelay = 0;
+ profileOptions.scanning.pointerEventsEnabled = false;
const {modifier, middleMouse, touchInputEnabled} = profileOptions.scanning;
const scanningInputs = [];