File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 326326 endCoords = event . originalEvent . targetTouches [ 0 ] ;
327327
328328 if ( ! hSwipe && plugin . settings . closeBySwipe ) {
329+ vDistanceLast = vDistance ;
329330 vDistance = endCoords . pageY - startCoords . pageY ;
330331 if ( Math . abs ( vDistance ) >= vSwipMinDistance || vSwipe ) {
331332 var opacity = 0.75 - Math . abs ( vDistance ) / slider . height ( ) ;
337338 }
338339 }
339340
341+ hDistanceLast = hDistance ;
340342 hDistance = endCoords . pageX - startCoords . pageX ;
341343 hDistancePercent = hDistance * 100 / winWidth ;
342344
381383 'transition' : 'transform 0.4s ease'
382384 } ) ;
383385
384- endCoords = event . originalEvent . targetTouches [ 0 ] ;
385-
386- vDistanceLast = vDistance ;
387386 vDistance = endCoords . pageY - startCoords . pageY ;
388-
389- hDistanceLast = hDistance ;
390387 hDistance = endCoords . pageX - startCoords . pageX ;
391388 hDistancePercent = hDistance * 100 / winWidth ;
392389
You can’t perform that action at this time.
0 commit comments