Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
backend: (manager, context) => TouchBackend(manager, context, {
enableMouseEvents: false,
ignoreContextMenu: true,
delayTouchStart: 200, // milliseconds
} as TouchBackendOptions),
// backend: TouchBackend,
return event;
},
release: version.build
};
Sentry.init(sentryOptions);
const store = configureStore();
store.dispatch(navigate(window.location.pathname, window.location.search, true));
window.onpopstate = function(e) {
store.dispatch(navigate(e.target.location.pathname, null, true));
};
const DnDContainer = DragDropContext(TouchBackend({ enableMouseEvents: true }))(Application);
render(
<div>
</div>
, document.getElementById('component'));
MouseTransition,
TouchTransition,
Transition,
BackendTransition
} from "dnd-multi-backend";
import { Backend, BackendFactory } from 'dnd-core';
export const HTML5ToTouch = {
backends: [
{
backend: HTML5Backend,
transition: MouseTransition
},
{
backend: TouchBackend({ enableMouseEvents: false }),
preview: true,
transition: TouchTransition
}
]
};
export function createDefaultMultiBackend() {
return MultiBackend(HTML5ToTouch);
}
backend: (manager, ctx) => TouchBackend(manager, ctx, { enableMouseEvents: false }),
preview: true,
import ReduxToastr from 'react-redux-toastr';
import { AppContainer } from 'react-hot-loader';
import { DragDropContext } from 'react-dnd';
import { default as TouchBackend } from 'react-dnd-touch-backend';
import './i18n';
const store = configureStore();
store.dispatch(navigate(window.location.pathname, window.location.search, true));
window.onpopstate = function(e) {
store.dispatch(navigate(e.target.location.pathname, null, true));
};
const DnDContainer = DragDropContext(TouchBackend({ enableMouseEvents: true }))(AppContainer);
const render = () => {
const Application = require('./Application').default;
ReactDOM.render(
<div>
</div>