diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2022-06-03 17:11:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-03 17:11:32 -0400 |
commit | c966d9b1ebb12386ac876d93f377fe3a470c6976 (patch) | |
tree | faa270fae2c011da8b05056271453f24d77c9d3c /ext/js/display/display.js | |
parent | e61edc387c1edeca1745c96d163a397b5bf1abdf (diff) |
Touch and pen input updates (#2172)
* Remove unnecessary return
* Move touch start input filtering
* Refactor
* Add scanOnTouchPress
* Add preventPenScrolling
* Rename scanOnPenPress to scanOnPenMove
* Rename scanOnPenRelease to scanOnPenReleaseHover
* Simplify
* Refactor _searchAtFromPen early exit
* Merge _penPointerPressed and _penPointerReleased into a single variable
* Add more options
* Simplify pen pointer coordinates
* Implement scanOnPenPress and scanOnPenRelease
* Implement scanOnTouchRelease
* Fix tests
* Don't search on touch cancel
* Cancel touch if the touch action is used for scrolling or other gestures
* Fix incorrect scroll prevention options being used
* Organize options
* Fix typos
Diffstat (limited to 'ext/js/display/display.js')
-rw-r--r-- | ext/js/display/display.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/js/display/display.js b/ext/js/display/display.js index f9153420..923c9dd2 100644 --- a/ext/js/display/display.js +++ b/ext/js/display/display.js @@ -1516,10 +1516,15 @@ class Display extends EventDispatcher { searchTerms: true, searchKanji: true, scanOnTouchMove: false, + scanOnTouchPress: false, + scanOnTouchRelease: false, + scanOnPenMove: false, scanOnPenHover: false, + scanOnPenReleaseHover: false, scanOnPenPress: false, scanOnPenRelease: false, - preventTouchScrolling: false + preventTouchScrolling: false, + preventPenScrolling: false } }], deepContentScan: scanningOptions.deepDomScan, |