Explorar o código

Pull&Refresh fix

Removed bounce on iOS devices and now works correctly on Android devices
ina %!s(int64=13) %!d(string=hai) anos
pai
achega
b7706b7c9c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/element/Lungo.Element.Pull.coffee

+ 1 - 0
src/element/Lungo.Element.Pull.coffee

@@ -96,6 +96,7 @@ Lungo.Element.Pull = (element_selector, config_data) ->
         INI_Y = (if $$.isMobile() then event.touches[0].pageY else event.pageY)
     ).bind("touchmove", (event) ->
       if not REFRESHING and STARTED
+        do event.preventDefault
         current_y = (if $$.isMobile() then event.touches[0].pageY else event.pageY)
         CURRENT_DISTANCE = current_y - INI_Y
         if CURRENT_DISTANCE >= 0