Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Two finger back/forward navigation required fast gesture #2346

Merged
merged 1 commit into from
Jul 7, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions js/components/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ class Main extends ImmutableComponent {
var xVelocity = deltaX / time
var yVelocity = deltaY / time
if (trackingFingers && Math.abs(yVelocity) < 1) {
if (xVelocity > 4) {
if (xVelocity > 1.5) {
ipc.emit(messages.SHORTCUT_ACTIVE_FRAME_FORWARD)
} else if (xVelocity < -4) {
} else if (xVelocity < -1.5) {
ipc.emit(messages.SHORTCUT_ACTIVE_FRAME_BACK)
}
}
Expand Down