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

Allow scroll by dragging near an edge? #132

Closed
KorvinSzanto opened this issue Jun 19, 2014 · 9 comments
Closed

Allow scroll by dragging near an edge? #132

KorvinSzanto opened this issue Jun 19, 2014 · 9 comments

Comments

@KorvinSzanto
Copy link
Contributor

Right now, I can't find a setting for enabling scrolling the container when you drag close to the edge.

Is this something I'm missing, or something that is likely to be accepted?

@briangonzalez
Copy link
Owner

Hmmm, so you do mean pepped objects shouldn't work when close to the edge of the screen if an option is passed?

@KorvinSzanto
Copy link
Contributor Author

@briangonzalez no, imagine a site that is 10,000 pixels high and you want to drag a div from the top to the bottom. Today, you'd have to:

  1. drag to the bottom of the screen
  2. scroll down enough for the div to be at the top of the screen
  3. if not at the bottom, go to step 1

what I propose, is that when you complete step1, pep realizes that you are at the edge of the container, and scrolls it downwards at a steady rate.

@briangonzalez
Copy link
Owner

@KorvinSzanto interesting idea! Let me think on this.

@KorvinSzanto
Copy link
Contributor Author

@briangonzalez cool, I appreciate it 😺

@KorvinSzanto
Copy link
Contributor Author

@briangonzalez Have any thoughts on the issue? I'm getting ready to start implementing this in concrete5.

@briangonzalez
Copy link
Owner

This is the general idea: http://codepen.io/briangonzalez/pen/evwko?editors=001

Rough, I know.

@KorvinSzanto
Copy link
Contributor Author

Yeah, I implemented this similarly. I just loop while it's within the area.

@briangonzalez
Copy link
Owner

I mean, feel free to send in a PR, but I won't be able to build this in for a while now.

@KorvinSzanto
Copy link
Contributor Author

Cool, I appreciate the help! Looking at it, I think the support pep provides today is pretty good.

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