Skip to content

Commit

Permalink
Apply changes to brave/muon#33
Browse files Browse the repository at this point in the history
  • Loading branch information
darkdh committed Aug 4, 2016
1 parent dc44032 commit 208fcf8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/components/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const ImmutableComponent = require('./immutableComponent')
const Immutable = require('immutable')
const electron = global.require('electron')
const ipc = electron.ipcRenderer
const systemPreferences = electron.remote.systemPreferences

// Actions
const windowActions = require('../actions/windowActions')
Expand Down Expand Up @@ -179,7 +180,8 @@ class Main extends ImmutableComponent {
swipeGesture = false
})
ipc.on('scroll-touch-begin', function () {
if (swipeGesture) {
if (swipeGesture &&
systemPreferences.isSwipeTrackingFromScrollEventsEnabled()) {
trackingFingers = true
startTime = (new Date()).getTime()
}
Expand Down

0 comments on commit 208fcf8

Please sign in to comment.