swipe events don’t work when i add scrollz
Opened this issue · 4 comments
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
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
jsfiddle link here
http://jsfiddle.net/skhurams/44r4tcxg/
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.
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();