1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-10-05 19:31:01 +00:00

chore(js): format JavaScript code with Prettier

This commit is contained in:
Frédéric Guillot 2025-08-01 18:34:05 -07:00
parent cce0e7bd29
commit f0575d64bc
10 changed files with 162 additions and 128 deletions

View file

@ -9,7 +9,7 @@ class TouchHandler {
move: { x: -1, y: -1 },
moved: false,
time: 0,
element: null
element: null,
};
}
@ -18,7 +18,7 @@ class TouchHandler {
const horizontalDistance = Math.abs(this.touch.move.x - this.touch.start.x);
const verticalDistance = Math.abs(this.touch.move.y - this.touch.start.y);
if (horizontalDistance > 30 && verticalDistance < 70 || this.touch.moved) {
if ((horizontalDistance > 30 && verticalDistance < 70) || this.touch.moved) {
return this.touch.move.x - this.touch.start.x;
}
}