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

Prevent Stuck Scroller When Trying To Move Programattically #71

Open
wants to merge 56 commits into
base: master
Choose a base branch
from

Conversation

geraldcor
Copy link

When attempting to move the scroller programatically, if
manualContinuousScrolling is enabled, the scroller will not move if the
scroller is at scrollLeft() == 0 initially (at the first element in the
scroller). I added an initial check to see if swapping should occur
before attempting to move so as to allow the continuous action to occur.

It is not perfect as this will only account for one position worth of
scrolling and attempting to use a step:function during animation seems
to not work because el.data("scrollWrapper").scrollLeft() does not seem
to update properly after swapping so it will scroll for as many steps
in the animation after scrollLeft() == 0.

Sorry for the huge amounts of commits. It has been a weird journey merging and such. A rebase was not exactly working. Hopefully this doesn't conflict.

Thomas Kahn and others added 30 commits September 19, 2011 10:55
…ations

added boolean option continuousScroll. Added new functions
continuousScrollRight, continuousScrollLeft. Changed the algorithm for
hotspot hovering speed ramp on the left hotspot (scrollingHotSpotLeft
"mouse move")
…ations

added boolean option continuousScroll. Added new functions
continuousScrollRight, continuousScrollLeft. Changed the algorithm for
hotspot hovering speed ramp on the left hotspot (scrollingHotSpotLeft
"mouse move")
added boolean option continuousScrolling. Added new functions
continuousScrollingRight, continuousScrollingLeft.
added boolean option continuousScrolling. Added new functions
continuousScrollingRight, continuousScrollingLeft.
Added a quick check for < 0 to set el.data("scrollXPos") to 1 instead
of 0 (included in the check for Infinity)
Added a quick check for < 0 to set el.data("scrollXPos") to 1 instead
of 0 (included in the check for Infinity)
Removing the beta designation for pull request
Removing the beta designation for pull request
Deleting 1.2.js and going to add changes later.
Deleting 1.2.js and going to add changes later.
Minor logic fix to make the scrolling hotspots start scrolling right on
the edge of the hotspot.
Minor logic fix to make the scrolling hotspots start scrolling right on
the edge of the hotspot.
Fixes typo involved in the fixes made for more precise hotspot scroll
start.
Fixes typo involved in the fixes made for more precise hotspot scroll
start.
Added setupComplete trigger and Makefile that uses uglify.js
Many new features added and irritating issues fixed. Check the README.md
file for all the info.
Autoscroll didn't stop when the user interacted with the scroller using
touch.
While writing the documentation I found some issues that I fixed.
Thomas Kahn and others added 26 commits October 2, 2012 13:04
Plugin now recalculates scrollable area every time content is loaded
using AJAX.
Conflicts:
	js/jquery.smoothDivScroll-1.3.js
Conflicts:
	js/jquery.smoothDivScroll-1.3.js
When attempting to move the scroller programatically, if
manualContinuousScrolling is enabled, the scroller will not move if the
scroller is at scrollLeft() == 0 initially (at the first element in the
scroller). I added an initial check to see if swapping should occur
before attempting to move so as to allow the continuous action to occur.

It is not perfect as this will only account for one position worth of
scrolling and attempting to use a step:function during animation seems
to not work because el.data("scrollWrapper").scrollLeft() does not seem
to update properly after swapping so it will scroll for as many steps
in the animation after scrollLeft() == 0.
When attempting to move the scroller programatically, if
manualContinuousScrolling is enabled, the scroller will not move if the
scroller is at scrollLeft() == 0 initially (at the first element in the
scroller). I added an initial check to see if swapping should occur
before attempting to move so as to allow the continuous action to occur.

It is not perfect as this will only account for one position worth of
scrolling and attempting to use a step:function during animation seems
to not work because el.data("scrollWrapper").scrollLeft() does not seem
to update properly after swapping so it will scroll for as many steps
in the animation after scrollLeft() == 0.
This reverts commit 5e6897c.
This reverts commit 5e6897c.
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.

1 participant