summaryrefslogtreecommitdiff
path: root/ext/css/settings.css
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2022-06-03 17:11:32 -0400
committerGitHub <noreply@github.com>2022-06-03 17:11:32 -0400
commitc966d9b1ebb12386ac876d93f377fe3a470c6976 (patch)
treefaa270fae2c011da8b05056271453f24d77c9d3c /ext/css/settings.css
parente61edc387c1edeca1745c96d163a397b5bf1abdf (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/css/settings.css')
-rw-r--r--ext/css/settings.css13
1 files changed, 11 insertions, 2 deletions
diff --git a/ext/css/settings.css b/ext/css/settings.css
index dc8132be..6f1afa00 100644
--- a/ext/css/settings.css
+++ b/ext/css/settings.css
@@ -1714,9 +1714,12 @@ code.anki-field-marker {
.scan-input-prefix-cell[data-property=search-options] {
grid-area: 4/2/5/3;
}
-.scan-input-prefix-cell[data-property=touch-pen-options] {
+.scan-input-prefix-cell[data-property=touch-options] {
grid-area: 5/2/6/3;
}
+.scan-input-prefix-cell[data-property=pen-options] {
+ grid-area: 6/2/7/3;
+}
.scan-input-content-cell[data-property=include] {
grid-area: 1/3/2/4;
}
@@ -1735,12 +1738,18 @@ code.anki-field-marker {
flex-flow: row wrap;
align-items: center;
}
-.scan-input-content-cell[data-property=touch-pen-options] {
+.scan-input-content-cell[data-property=touch-options] {
grid-area: 5/3/6/4;
display: flex;
flex-flow: column nowrap;
align-items: flex-start;
}
+.scan-input-content-cell[data-property=pen-options] {
+ grid-area: 6/3/7/4;
+ display: flex;
+ flex-flow: column nowrap;
+ align-items: flex-start;
+}
.scan-input-options-cell {
padding: 0.25em 0;
align-self: start;