Skip to content

Commit

Permalink
fix(gestures): replace FEATURES with TOUCH_EVENTS
Browse files Browse the repository at this point in the history
  • Loading branch information
localvoid committed May 10, 2018
1 parent 23bb7d2 commit 30f154e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ivi-gestures/src/gesture_event_source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* https://docs.google.com/document/d/12-HPlSIF7-ISY8TQHtuQ3IqDi-isZVI0Yzv5zwl90VU
*/

import { FEATURES, FeatureFlags, catchError } from "ivi-core";
import { TOUCH_EVENTS, catchError } from "ivi-core";
import {
DispatchTarget, accumulateDispatchTargets, SyntheticEvent, EventSource, EventHandler, dispatchEvent,
} from "ivi-events";
Expand Down Expand Up @@ -39,7 +39,7 @@ export class GestureEventSource {
};
this.dependencies = 0;
this.pointers = [];
this.listener = (FEATURES & FeatureFlags.TouchEvents) ?
this.listener = TOUCH_EVENTS ?
createTouchEventListener(this.pointers, this.dispatch) :
createMouseEventListener(this.dispatch);
}
Expand Down

0 comments on commit 30f154e

Please sign in to comment.