Skip to content

Commit

Permalink
Enable touch events on old React versions
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Nov 14, 2015
1 parent cf978ea commit 26bc33b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions demo/js/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ var React = window.React || require('react');
var ReactDom = window.ReactDOM || require('react-dom') || React;
var ElementPan = React.createFactory(window.reactElementPan || require('react-element-pan'));

if (React.initializeTouchEvents) {
React.initializeTouchEvents(true);
}

// Simple image demo
ReactDom.render(
new ElementPan({
Expand Down

0 comments on commit 26bc33b

Please sign in to comment.