jquery.scrollz icon indicating copy to clipboard operation
jquery.scrollz copied to clipboard

swipe events don’t work when i add scrollz

Open skhurams opened this issue 10 years ago • 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

skhurams avatar Apr 23 '15 13:04 skhurams

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

zippy1978 avatar Apr 25 '15 20:04 zippy1978

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

skhurams avatar Apr 27 '15 09:04 skhurams

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.

ichilver avatar Sep 23 '15 16:09 ichilver

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

zippy1978 avatar Dec 07 '15 21:12 zippy1978