Skip to content

Commit 133328c

Browse files
tomahimSergioCrisostomo
authored andcommitted
fixing issue #1159
1 parent f5a1884 commit 133328c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Source/Drag/Drag.js

+5
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ var Drag = this.Drag = new Class({
4646
limit: false,
4747
handle: false,
4848
invert: false,
49+
unDraggableTags: ['button', 'input', 'a', 'textarea', 'select', 'option'],
4950
preventDefault: false,
5051
stopPropagation: false,
5152
compensateScroll: false,
@@ -133,6 +134,10 @@ var Drag = this.Drag = new Class({
133134
},
134135

135136
start: function(event){
137+
if (
138+
this.options.unDraggableTags.contains(event.target.get('tag'))
139+
) return;
140+
136141
var options = this.options;
137142

138143
if (event.rightClick) return;

0 commit comments

Comments
 (0)