Skip to content

Commit 4c62b36

Browse files
specs and code style fix
1 parent 133328c commit 4c62b36

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

Source/Drag/Drag.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,7 @@ var Drag = this.Drag = new Class({
134134
},
135135

136136
start: function(event){
137-
if (
138-
this.options.unDraggableTags.contains(event.target.get('tag'))
139-
) return;
137+
if (this.options.unDraggableTags.contains(event.target.get('tag'))) return;
140138

141139
var options = this.options;
142140

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<style>
2+
#wrapper {
3+
background-color: #fff;
4+
border: 1px solid #303030;
5+
float: left;
6+
top:500px;
7+
width: 30%;
8+
height:100px;
9+
}
10+
</style>
11+
<p>You should be able to focus and change th input value after dragging.</p>
12+
<div id='wrapper'>
13+
<div>
14+
<input id='input' value='try to focus me'></input>
15+
</div>
16+
</div>
17+
<script>
18+
new Drag.Move('wrapper');
19+
</script>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
js-references:
2+
- "More/Drag"
3+
- "More/Drag.Move"

0 commit comments

Comments
 (0)