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

dragend("right")/dragend("left") problem #74

Open
landwire opened this issue Sep 19, 2015 · 2 comments
Open

dragend("right")/dragend("left") problem #74

landwire opened this issue Sep 19, 2015 · 2 comments

Comments

@landwire
Copy link

I am using this code below, but it only works to go from slide 1 to 2 on click. It also shows some odd behaviour, as it always goes to page 1 when you click any < and to page 2 when you click any >

Any ideas what might be wrong? Swiping works fine. The click event fires, as the console logs the event.
Anyway, I appreciate any suggestions...

<button class="dragend-arrow dragend-left" value="Previous" onclick="prevdragpage('.dragend-navigation-blocks')"><</button>
<button class="dragend-arrow dragend-right" value="Next" onclick="nextdragpage('.dragend-navigation-blocks')">></button>



// dragend next/previous
      function prevdragpage(target) {
        console.log('previous');
        jQuery('div' + target).dragend("right");
      }

      function nextdragpage(target) {
          console.log('next');
          jQuery('div' + target).dragend("left");
      }

jQuery(document).ready(function($){
      // Dragend targeting
        $('.dragend-navigation-blocks').dragend({

      });
@mkhenrik
Copy link

mkhenrik commented Apr 1, 2016

I had a similar problem. It seems like the newest dragend.js file in the respository is not the same as the one that is used in the examples. I don´t know what have changed exactly but copying the dragend.js file that is referenced in the examples made it work for me.

@ghost
Copy link

ghost commented Apr 20, 2017

I just commented line 876. Not sure if that messes up something else, but it works for me.
if ( instance ) { //instance.updateInstance( settings ); } else {

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

No branches or pull requests

2 participants