Subversion Repositories SmartDukaan

Rev

Rev 11921 | Rev 12524 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11921 Rev 11938
Line 183... Line 183...
183
 
183
 
184
            snap : true,
184
            snap : true,
185
 
185
 
186
            onBeforeScrollStart : function(e) {
186
            onBeforeScrollStart : function(e) {
187
 
187
 
188
              console.log("onBeforeScrollStart");
-
 
189
 
188
 
190
              point = e.touches[0];
189
              point = e.touches[0];
191
 
190
 
192
              pointStartX = point.pageX;
191
              pointStartX = point.pageX;
193
 
192
 
Line 195... Line 194...
195
 
194
 
196
            },
195
            },
197
 
196
 
198
            onBeforeScrollMove : function(e) {
197
            onBeforeScrollMove : function(e) {
199
 
198
 
200
              console.log(e);
-
 
201
 
199
 
202
              point = e.touches[0];
200
              point = e.touches[0];
203
 
201
 
204
              //alert("onBeforeScrollMove");
202
              //alert("onBeforeScrollMove");
205
 
203
 
Line 276... Line 274...
276
            vScroll : false,
274
            vScroll : false,
277
            hScrollbar : false,
275
            hScrollbar : false,
278
            vScrollbar : false,
276
            vScrollbar : false,
279
            snap : true,
277
            snap : true,
280
            onBeforeScrollStart : function(e) {
278
            onBeforeScrollStart : function(e) {
281
              console.log("onBeforeScrollStart");
-
 
282
              point = e.touches;
279
              point = e.touches;
283
              pointStartX = point.pageX;
280
              pointStartX = point.pageX;
284
              pointStartY = point.pageY; null;
281
              pointStartY = point.pageY; null;
285
            },
282
            },
286
            onBeforeScrollMove : function(e) {
283
            onBeforeScrollMove : function(e) {
287
              console.log(e);
-
 
288
              point = e.touches;
284
              point = e.touches;
289
              //alert("onBeforeScrollMove");
285
              //alert("onBeforeScrollMove");
290
              deltaX = Math.abs(point.pageX - pointStartX);
286
              deltaX = Math.abs(point.pageX - pointStartX);
291
              deltaY = Math.abs(point.pageY - pointStartY);
287
              deltaY = Math.abs(point.pageY - pointStartY);
292
              if (deltaX >= deltaY) {
288
              if (deltaX >= deltaY) {