zippy1978 / jquery.scrollz

Modern scrolling for jQuery
GNU General Public License v2.0
81 stars 17 forks source link

swipe events don’t work when i add scrollz #28

Open skhurams opened 9 years ago

skhurams commented 9 years ago

Hi i have a project i am already using swipe event in muli page template. in swipe i change page. I needed to include pull down refresh. When i add scrollz, swipe events stopped working although pulldown works fine One thing is interesting in safari swipe and pull down work together but not in iOS simulator

zippy1978 commented 9 years ago

Hi,

It is probably a touch event compatibility issue between the 2 components. Could you give me the code to reproduce this issue ?

Regards, Gilles

skhurams commented 9 years ago

jsfiddle link here http://jsfiddle.net/skhurams/44r4tcxg/

ichilver commented 9 years ago

Is there any update on this bug??

Likewise I'm using scrollz for a pull down action to refresh my data on the page, but likewise want to use the swipe left to reveal a panel.

Example here

https://jsfiddle.net/ichilver/zLdpLvnq/

But scrollz and swipe just don't work together.

zippy1978 commented 8 years ago

Hi,

Swipe event probably don't work because on touchmove events, default event are prevented :

 // Add touch move listener
        container.bind(_getTouchEventName($this, 'touchmove'), function(event) {
          // Prevent default behaviour
          event.preventDefault(); 
          // Handle
          _handleTouchMoveEvent(event, $this);
        });

Maybe you should try to remove event.preventDefault();