Skip to content

Commit 9deaf2d

Browse files
authored
Specify disabled swipes (#86)
* Configure swipes ok for mouse3/4 = move * Use filled heavy check mark
1 parent 6bd7603 commit 9deaf2d

File tree

3 files changed

+25
-22
lines changed

3 files changed

+25
-22
lines changed

README.md

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -419,46 +419,49 @@ Possible Values:
419419
- scroll - 3/4 finger natural scroll (no acceleration, very experimental)
420420
- scroll_reverse - 3/4 finger reverse scroll (no acceleration, very experimental)
421421

422+
> **Tip**: You can clear mouse gestures by setting them blank
423+
>
424+
> ```
425+
> comfortable-swipe mouse3 =
426+
> comfortable-swipe mouse4 =
427+
> ```
428+
422429
Examples:
423430
424-
- 3/4-finger drag
431+
✔️ swipes OK
432+
⭕ swipes DISABLED
433+
434+
- 3/4-finger drag ⭕
435+
425436
```bash
426437
comfortable-swipe mouse3 = button1
427-
```
428-
```bash
429438
comfortable-swipe mouse4 = button1
430439
```
431-
- 3/4-finger natural scroll
432440
433-
```bash
434-
comfortable-swipe mouse3 = scroll
435-
```
441+
You can also use `button2` for middle click and `button3` for right click.
442+
443+
- 3/4-finger natural scroll ⭕
436444

437445
```bash
446+
comfortable-swipe mouse3 = scroll
438447
comfortable-swipe mouse4 = scroll
439448
```
440449

441-
- 3/4-finger reverse scroll
450+
- 3/4-finger reverse scroll
442451

443452
```bash
444453
comfortable-swipe mouse3 = scroll_reverse
445-
```
446-
447-
```bash
448454
comfortable-swipe mouse4 = scroll_reverse
449455
```
450456

451-
- Move 3/4-fingers with the cursor
457+
- Move 3/4-fingers with the cursor ✔️
452458

453459
```bash
454460
comfortable-swipe mouse3 = move
461+
comfortable-swipe mouse4 = move
455462
```
456463

457-
```bash
458-
mcomfortable-swipe ouse4 = move
459-
```
460-
461-
> **Warning**: Applying any mouse-mouse configuration will **disable up/left/right/down behavior** to avoid gesture conflicts. The logic of this will be improved in the future.
464+
> **Warning**: Some mouse configuration will **disable up/left/right/down behavior** to avoid gesture conflicts. The logic of this will be improved in the future.
462465
463466
## Debugging
464467

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.2.2
1+
v1.2.3

comfortable-swipe

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,10 @@ function status {
200200
else
201201
vstatus="VALID"
202202
if [[ "$key" != mouse* ]]; then
203-
if [[ "$key" == *3 && -n "$mouse3" ]]; then
204-
vstatus="IGNORED"
205-
elif [[ "$key" == *4 && -n "$mouse4" ]]; then
206-
vstatus="IGNORED"
203+
if [[ "$key" == *3 && -n "$mouse3" && "$mouse3" != move ]]; then
204+
vstatus="DISABLED"
205+
elif [[ "$key" == *4 && -n "$mouse4" && "$mouse4" != move ]]; then
206+
vstatus="DISABLED"
207207
fi
208208
fi
209209
if [[ "$key" == threshold ]]; then

0 commit comments

Comments
 (0)