Skip to content
This repository has been archived by the owner. It is now read-only.

remove isSwipeTrackingFromScrollEventsEnabled #8476

Merged
merged 1 commit into from Apr 29, 2017
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

remove isSwipeTrackingFromScrollEventsEnabled

remote.systemPreferences is no longer available and muon now only fires scroll-touch-begin and scroll-touch-end if the system pref is enabled
  • Loading branch information
bridiver committed Apr 24, 2017
commit f5532c271ef493239e56c433de63ca2060b62fec
@@ -7,7 +7,6 @@ const ImmutableComponent = require('../../app/renderer/components/immutableCompo
const Immutable = require('immutable')
const electron = require('electron')
const ipc = electron.ipcRenderer
const systemPreferences = electron.remote.systemPreferences

// Actions
const appActions = require('../actions/appActions')
@@ -234,7 +233,7 @@ class Main extends ImmutableComponent {

// isSwipeTrackingFromScrollEventsEnabled is only true if "two finger scroll to swipe" is enabled
ipc.on('scroll-touch-begin', () => {
if (swipeGesture && systemPreferences.isSwipeTrackingFromScrollEventsEnabled()) {
if (swipeGesture) {
trackingFingers = true
startTime = (new Date()).getTime()
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.