diff --git a/app/extensions/brave/locales/en-US/preferences.properties b/app/extensions/brave/locales/en-US/preferences.properties index 01185562ce7..020ae56d75d 100644 --- a/app/extensions/brave/locales/en-US/preferences.properties +++ b/app/extensions/brave/locales/en-US/preferences.properties @@ -270,6 +270,9 @@ useHardwareAcceleration=Use hardware acceleration when available * useSmoothScroll=Enable smooth scrolling * defaultZoomLevel=Default zoom level toolbarUserInterfaceScale=Toolbar and UI elements scale +swipeNavigationSensitivity=Swipe Navigation Sensitivity +fast=Fast +slow=Slow en-US=English (U.S.) nl-NL=Dutch (Netherlands) pt-BR=Portuguese (Brazil) diff --git a/app/renderer/components/main/main.js b/app/renderer/components/main/main.js index 55690dd9044..8ad959257c7 100644 --- a/app/renderer/components/main/main.js +++ b/app/renderer/components/main/main.js @@ -229,10 +229,11 @@ class Main extends ImmutableComponent { }, { passive: true }) ipc.on('scroll-touch-end', () => { - if (trackingFingers && time > 30 && Math.abs(deltaY) < 80) { - if (deltaX > 70 && isSwipeOnRightEdge) { + const threshold = getSetting(settings.SWIPE_NAV_SENSITIVITY) + if (trackingFingers && time > threshold && Math.abs(deltaY) < 80) { + if (deltaX > 80 && isSwipeOnRightEdge) { ipc.emit(messages.SHORTCUT_ACTIVE_FRAME_FORWARD) - } else if (deltaX < -70 && isSwipeOnLeftEdge) { + } else if (deltaX < -80 && isSwipeOnLeftEdge) { ipc.emit(messages.SHORTCUT_ACTIVE_FRAME_BACK) } } diff --git a/app/renderer/components/preferences/advancedTab.js b/app/renderer/components/preferences/advancedTab.js index 6900b8e71b1..b83de2319e3 100644 --- a/app/renderer/components/preferences/advancedTab.js +++ b/app/renderer/components/preferences/advancedTab.js @@ -35,6 +35,30 @@ class AdvancedTab extends ImmutableComponent { onChangeSetting={this.props.onChangeSetting} /> } + get swipeNavigationSensitivitySetting () { + if (platformUtil.isDarwin()) { + return