We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 084ddfd commit a37e23bCopy full SHA for a37e23b
app/src/mobile/util/keyboardToolbar.ts
@@ -521,13 +521,15 @@ export const initKeyboardToolbar = () => {
521
</div>
522
<div class="keyboard__util"></div>`;
523
let startY = 0;
524
+ let startX = 0;
525
let moved = false;
526
toolbarElement.addEventListener("touchstart", e => {
527
startY = e.touches[0].clientY;
528
+ startX = e.touches[0].clientX;
529
moved = false;
530
});
531
toolbarElement.addEventListener("touchmove", e => {
- if (Math.abs(e.touches[0].clientY - startY) > 10) {
532
+ if (Math.abs(e.touches[0].clientY - startY) > 10 || Math.abs(e.touches[0].clientX - startX) > 10) {
533
moved = true;
534
}
535
0 commit comments