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

Restores default scrolling action onReset #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

clonemeagain
Copy link

When zoomed all the way back out, allows user to return to known work-flow of scrolling down the page.
Scrolling up will still trigger as normal. Tested.

Also means that an image won't block a normal scroll use of the page when user isn't interested in zooming, but the image happens to be beneath the mouse (downwards scrolling had no effect on page when image was beneath cursor).
Change only uses API function: http://api.jquery.com/scrolltop/

60 is in pixels, so needs to be enough that it doesn't affect the normal use of the wheel.

When zoomed all the way back out, allows user to return to known work-flow of scrolling down the page. 
Scrolling up will still trigger as normal. Tested.

Also means that an image won't block a normal scroll use of the page when user isn't interested in zooming, but the image happens to be beneath the mouse (downwards scrolling had no effect on page when image was beneath cursor).
Change only uses API function: http://api.jquery.com/scrolltop/

60 is in pixels, so needs to be enough that it doesn't affect the normal use of the wheel.
}(window.jQuery);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I didn't intend this carriage return, must be the github online editor doing that.

@jackmoore
Copy link
Owner

Thanks. I think this is a good suggestion, but I don't really care for the way it's being implemented (no offense intended!). I think it was a bad idea on my part to tie to the normal onscroll, rather than having to activate it in some way (such as with a click or focus).

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

Successfully merging this pull request may close these issues.

2 participants