forked from ukrbublik/react-awesome-query-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdrag.js
More file actions
31 lines (27 loc) · 608 Bytes
/
Copy pathdrag.js
File metadata and controls
31 lines (27 loc) · 608 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import * as constants from "../stores/constants";
/**
* @param {Object} mousePos
* @param {Object} dragging
*/
export const setDragProgress = (mousePos, dragging) => ({
type: constants.SET_DRAG_PROGRESS,
mousePos: mousePos,
dragging: dragging,
});
/**
* @param {Object} dragStart
* @param {Object} dragging
* @param {Object} mousePos
*/
export const setDragStart = (dragStart, dragging, mousePos) => ({
type: constants.SET_DRAG_START,
dragStart: dragStart,
dragging: dragging,
mousePos: mousePos,
});
/**
*
*/
export const setDragEnd = () => ({
type: constants.SET_DRAG_END,
});