File tree Expand file tree Collapse file tree 1 file changed +31
-1
lines changed Expand file tree Collapse file tree 1 file changed +31
-1
lines changed Original file line number Diff line number Diff line change 91
91
import {getDocumentDir } from " ../helpers/DOM" ;
92
92
// var eventBus = require('./eventBus');
93
93
94
- let interact = require (" interactjs" );
94
+ // let interact = require("interactjs");
95
+ // import interactablePreventDefault from "@interactjs/core/interactablePreventDefault";
96
+ // import inertia from '@interactjs/inertia'
97
+ import * as autoStart from ' @interactjs/auto-start'
98
+ // import * as modifiers from '@interactjs/modifiers'
99
+ // import modifiersBase from '@interactjs/modifiers/base'
100
+
101
+ import * as actions from " @interactjs/actions" ;
102
+
103
+ // import * as pointerEvents from "@interactjs/pointer-events";
104
+ import interact from " @interactjs/interact" ;
105
+ import { scope } from " @interactjs/interact/interact" ;
95
106
96
107
export default {
97
108
name: " GridItem" ,
294
305
this .interactObj .unset () // destroy interact intance
295
306
},
296
307
mounted : function () {
308
+ scope .init (window )
309
+
310
+ // interact.use(interactablePreventDefault)
311
+
312
+ // pointerEvents
313
+ // interact.use(pointerEvents)
314
+
315
+ // inertia
316
+ // interact.use(inertia)
317
+
318
+ // autoStart, hold
319
+ interact .use (autoStart);
320
+
321
+ // drag and drop, resize, gesture
322
+ interact .use (actions);
323
+
324
+ // snap, resize, etc.
325
+ // interact.use(modifiersBase);
326
+
297
327
this .cols = this .$parent .colNum ;
298
328
this .rowHeight = this .$parent .rowHeight ;
299
329
this .containerWidth = this .$parent .width !== null ? this .$parent .width : 100 ;
You can’t perform that action at this time.
0 commit comments