Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
skhurams opened this issue Apr 23, 2015 · 4 comments
Open

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

skhurams opened this issue Apr 23, 2015 · 4 comments
Labels

Comments

@skhurams
Copy link

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 zippy1978 added the bug label Apr 25, 2015
@zippy1978
Copy link
Owner

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
Copy link
Author

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

@ichilver
Copy link

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
Copy link
Owner

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();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants