Skip to content

Commit cb88f0b

Browse files
committed
Fixed flesler#80
1 parent f4aed93 commit cb88f0b

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jquery.scrollTo",
3-
"version": "1.4.11",
3+
"version": "1.4.12",
44
"description": "Easy element scrolling using jQuery.",
55
"homepage": "https://github.com/flesler/jquery.scrollTo",
66
"main": [

changes.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
1.4.12
2+
[Fix]
3+
- Fixed selector matching body fails on window scrolling
4+
15
1.4.11
26
[Misc]
37
- Reverted changes from 1.4.10

jquery.scrollTo.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* http://flesler.blogspot.com/2007/10/jqueryscrollto.html
66
* @projectDescription Easy element scrolling using jQuery.
77
* @author Ariel Flesler
8-
* @version 1.4.11
8+
* @version 1.4.12
99
*/
1010

1111
;(function(plugin) {
@@ -92,8 +92,8 @@
9292
// We are done
9393
break;
9494
}
95-
// Relative selector, no break!
96-
targ = $(targ,this);
95+
// Relative/Absolute selector, no break!
96+
targ = win ? $(targ) : $(targ, this);
9797
if (!targ.length) return;
9898
case 'object':
9999
// DOMElement / jQuery

jquery.scrollTo.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scrollTo.jquery.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "Ariel Flesler's jQuery scrollTo",
44
"description": "Easy element scrolling using jQuery.",
55
"keywords": ["browser", "animated", "animation", "scrolling", "scroll", "links", "anchors"],
6-
"version": "1.4.11",
6+
"version": "1.4.12",
77
"author": {
88
"name": "Ariel Flesler",
99
"email": "[email protected]",

0 commit comments

Comments
 (0)