How to use the react-dnd-touch-backend.default function in react-dnd-touch-backend

To help you get started, we’ve selected a few react-dnd-touch-backend examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cormacrelf / angular-skyhook / packages / examples / src / app / customMultiBackend.ts View on Github external
        backend: (manager, context) => TouchBackend(manager, context, {
            enableMouseEvents: false,
            ignoreContextMenu: true,
            delayTouchStart: 200, // milliseconds
        } as TouchBackendOptions),
        // backend: TouchBackend,
github keyteki / keyteki / client / index.prod.jsx View on Github external
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'));
github cormacrelf / angular-skyhook / packages / angular-skyhook-multi-backend / src / HTML5ToTouch.ts View on Github external
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);
}
github cormacrelf / angular-skyhook / packages / multi-backend / src / HTML5ToTouch.ts View on Github external
            backend: (manager, ctx) => TouchBackend(manager, ctx, { enableMouseEvents: false }),
            preview: true,
github keyteki / keyteki / client / index.dev.jsx View on Github external
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 = () =&gt; {
    const Application = require('./Application').default;
    ReactDOM.render(
        
            <div>
                
                
            </div>

react-dnd-touch-backend

Touch backend for react-dnd

MIT
Latest version published 3 years ago

Package Health Score

73 / 100
Full package analysis

Popular react-dnd-touch-backend functions