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

How to disable point to scroll outside the handle? #119

Closed
marcocastignoli opened this issue Dec 22, 2016 · 4 comments
Closed

How to disable point to scroll outside the handle? #119

marcocastignoli opened this issue Dec 22, 2016 · 4 comments

Comments

@marcocastignoli
Copy link

I want to put some content in the handle container, but when i tap on my content the handle starts sliding to the point I clicked. Is there an option to disable this?

@marcocastignoli
Copy link
Author

I implemented it:

scrollToTap

onWrapperMouseDown: function(e) {
      if (!this.options.scrollToTap) {
          return;
      }
      Cursor.refresh(e);
      preventEventDefaults(e);
      this.startTap();
  },

@ovidiuch
Copy link
Owner

ovidiuch commented Dec 23, 2016 via email

@marcocastignoli
Copy link
Author

Are you sarcastic? There was already another feature like this?

@ovidiuch
Copy link
Owner

There was already another feature like this?

No.

Not sarcastic. Happy you found a solution so quick. Feel free to create a PR to make it an official option.

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