Skip to content

Prevent Stuck Scroller When Trying To Move Programattically #71

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

Open
wants to merge 56 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
d47f8f4
first commit
Sep 19, 2011
5fdc32b
Checking in the first version of the project files.
Sep 19, 2011
79a2075
Edited README via GitHub
Sep 19, 2011
614c229
Edited README via GitHub
Sep 19, 2011
2e327ce
Adding continuous scroll for hotspot scrolling and made a few optimiz…
geraldcor Feb 25, 2012
b553e29
Adding continuous scroll for hotspot scrolling and made a few optimiz…
geraldcor Feb 25, 2012
abdb1f0
Adding continuous scroll for hotspot scrolling
geraldcor Feb 27, 2012
18da890
Adding continuous scroll for hotspot scrolling
geraldcor Feb 27, 2012
0b4731d
Ensuring scroll limit is the very edge of hotspot
geraldcor Mar 2, 2012
03ae96b
Ensuring scroll limit is the very edge of hotspot
geraldcor Mar 2, 2012
e975c78
Renaming files
geraldcor May 30, 2012
0ae9301
Renaming files
geraldcor May 30, 2012
d732481
Dealing with Merge conflicts
geraldcor May 30, 2012
531c3f4
Dealing with Merge conflicts
geraldcor May 30, 2012
70c5b9e
Still dealing with merging
geraldcor May 30, 2012
ac5a394
Still dealing with merging
geraldcor May 30, 2012
f37469c
Deleting
geraldcor May 30, 2012
b5c337f
Deleting
geraldcor May 30, 2012
7c8d402
Almost done commiting
geraldcor May 30, 2012
789eed7
Almost done commiting
geraldcor May 30, 2012
d71c407
Final fix to to ensure hotspots trigger right on the edge.
geraldcor May 30, 2012
05d9121
Final fix to to ensure hotspots trigger right on the edge.
geraldcor May 30, 2012
3cf48fd
Fixing Typo
geraldcor May 30, 2012
f827d04
Fixing Typo
geraldcor May 30, 2012
4fc5ad7
Merge pull request #16 from richleland/setuptrigger
Jul 29, 2012
e99ea4e
Version 1.3
Sep 12, 2012
5b5c3ee
Fixed collision between touch and autoscroll
Sep 12, 2012
128cad0
Fixed issues found while doing documentation
Sep 16, 2012
3553a8e
Changed some stuff in the README file.
Sep 16, 2012
22ad495
Added JSFiddle to README
Oct 2, 2012
a639730
Edited JSFiddle link
Oct 2, 2012
58967f6
Edited JSFiddle link
Oct 2, 2012
60c56a0
Recalculate when loading content using AJAX
Oct 2, 2012
2f8ee0e
Merge remote-tracking branch 'upstream/master'
geraldcor Nov 19, 2012
e9a4413
Merge remote-tracking branch 'upstream/master'
geraldcor Nov 19, 2012
17476d9
Prevent a "stuck" scroller when attempting to move.
geraldcor Jan 10, 2013
40fd168
Prevent a "stuck" scroller when attempting to move.
geraldcor Jan 10, 2013
af83c14
Merge branch 'master' of https://github.com/geraldcor/Smooth-Div-Scroll
geraldcor Jan 10, 2013
f5c6dac
Trying to clean things up
geraldcor Jan 10, 2013
5e6897c
Still cleaning
geraldcor Jan 10, 2013
09820ee
Revert "Still cleaning"
geraldcor Jan 10, 2013
671b2ea
Revert "Revert "Still cleaning""
geraldcor Jan 10, 2013
4f7ca5a
Revert "Revert "Revert "Still cleaning"""
geraldcor Jan 10, 2013
d6648b7
Revert "Revert "Revert "Revert "Still cleaning""""
geraldcor Jan 10, 2013
135c8bc
Revert "Revert "Revert "Still cleaning"""
geraldcor Jan 10, 2013
3d01c5b
Revert "Revert "Still cleaning""
geraldcor Jan 10, 2013
fd1f6cc
Revert "Revert "Revert "Still cleaning"""
geraldcor Jan 10, 2013
9daebd3
Revert "Revert "Revert "Revert "Still cleaning""""
geraldcor Jan 10, 2013
7d04dc7
Revert "Revert "Revert "Revert "Revert "Still cleaning"""""
geraldcor Jan 10, 2013
2341504
Revert "Revert "Revert "Revert "Still cleaning""""
geraldcor Jan 10, 2013
c6e9aed
Revert "Revert "Revert "Still cleaning"""
geraldcor Jan 10, 2013
ca53b42
Revert "Revert "Still cleaning""
geraldcor Jan 10, 2013
be62836
Revert "Still cleaning"
geraldcor Jan 10, 2013
68864b8
Cleaning up bad merge
geraldcor Jan 10, 2013
cafb701
Removing old README
geraldcor Jan 10, 2013
6294be0
Trying to get rid of thumbs
geraldcor Jan 10, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion js/jquery.mousewheel.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions js/jquery.smoothDivScroll-1.3.js
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,15 @@
// clear queue, move to end
el.data("scrollWrapper").stop(true, true);

// To avoid a "stuck" scroller when trying to move manually, attempt to make an initial swap before attempting to move
if (o.manualContinuousScrolling) {
if (pixels > 0) {
self._checkContinuousSwapRight();
} else {
self._checkContinuousSwapLeft();
}
}

// Only run this code if it's possible to scroll left or right,
if ((pixels < 0 && el.data("scrollWrapper").scrollLeft() > 0) || (pixels > 0 && el.data("scrollableAreaWidth") > (el.data("scrollWrapper").innerWidth() + el.data("scrollWrapper").scrollLeft()))) {
if (o.easingAfterMouseWheelScrolling) {
Expand Down