UNPKG

interactjs

Version:

Drag and drop, resizing and multi-touch gestures with inertia and snapping for modern browsers (and also IE8+)

19 lines (17 loc) 456 B
/* * In a (windowless) server environment this file exports a factory function * that takes the window to use. * * var interact = require('interact.js')(windowObject); * * See https://github.com/taye/interact.js/issues/187 */ if (typeof window === 'undefined') { module.exports = function (window) { require('./src/utils/window').init(window); return require('./src/index'); }; } else { module.exports = require('./src/index'); }