aboutsummaryrefslogtreecommitdiffstats
path: root/97suifangqa/staticfiles/plugins/jquery-ui/tests/unit/draggable/draggable_common.js
blob: 5abd09e49354bb8f351ab5672d1e0b8940c0522a (plain)
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
32
33
34
35
36
37
38
39
40
TestHelpers.commonWidgetTests( "draggable", {
	defaults: {
		appendTo: "parent",
		axis: false,
		cancel: "input,textarea,button,select,option",
		connectToSortable: false,
		containment: false,
		cursor: "auto",
		cursorAt: false,
		disabled: false,
		grid: false,
		handle: false,
		helper: "original",
		opacity: false,
		refreshPositions: false,
		revert: false,
		revertDuration: 500,
		scroll: true,
		scrollSensitivity: 20,
		scrollSpeed: 20,
		scope: "default",
		snap: false,
		snapMode: "both",
		snapTolerance: 20,
		stack: false,
		zIndex: false,

		//todo: remove the following option checks when interactions are rewritten:
		addClasses: true,
		delay: 0,
		distance: 1,
		iframeFix: false,

		// callbacks
		create: null,
		drag: null,
		start: null,
		stop: null
	}
});