File tree Expand file tree Collapse file tree 1 file changed +21
-5
lines changed Expand file tree Collapse file tree 1 file changed +21
-5
lines changed Original file line number Diff line number Diff line change 122
122
} ) ;
123
123
124
124
bodyTouch . on ( 'swipeStart' , '.checkA' , function ( e ) {
125
- $ ( '.console1' ) . append ( 'swipeStart' + I ( ) + '<br/>' ) ;
125
+ $ ( '.console1' ) . append ( 'swipeStart<br/>' ) ;
126
+ $ ( this ) . css ( {
127
+ 'position' :'relative' ,
128
+ 'background' :'#ddd'
129
+ } ) ;
126
130
} ) . on ( 'swipe' , '.checkA' , function ( e ) {
127
- $ ( '.console1' ) . append ( 'swipe' + I ( ) + '<br/>' ) ;
128
- console . log ( this , e ) ;
131
+ $ ( '.console1' ) . append ( 'swipe-' + e . pageX + '<br/>' ) ;
132
+ // console.log(this,e);
133
+ $ ( this ) . css ( {
134
+ 'top' :e . moveY ,
135
+ 'left' :e . moveX
136
+ } ) ;
129
137
} ) . on ( 'swipeEnd' , '.checkA' , function ( e ) {
130
- $ ( '.console1' ) . append ( 'swipeEnd' + I ( ) + ' <br/>') ;
138
+ $ ( '.console1' ) . append ( 'swipeEnd<br/>' ) ;
131
139
console . log ( this , e ) ;
140
+ $ ( this ) . animate ( {
141
+ 'position' :'static' ,
142
+ 'top' :0 ,
143
+ 'left' :0 ,
144
+ 'background' :'#fff'
145
+ } , 100 ) ;
146
+ $ ( this ) . css ( 'background' , '#fff' ) ;
132
147
} ) ;
133
148
134
149
bodyTouch . on ( 'singleTap' , '.checkB' , function ( e ) {
153
168
$ ( '.console' ) . html ( 'logger<br/>' ) ;
154
169
} ) ;
155
170
</ script >
156
- </ body >
171
+ </ body >
172
+ </ html >
You can’t perform that action at this time.
0 commit comments