Skip to content

Commit 86f74cb

Browse files
committed
Fix for issue jquery-archive#3416 - getTopOffset() should subtract scrollTop not add it.
- Modified private utility function getTopOffset() so that it subracts scrollTop from top instead of adding it.
1 parent ff9b742 commit 86f74cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/jquery.mobile.fixHeaderFooter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ $.mobile.fixedToolbars = (function() {
200200
top = ele.offsetTop;
201201

202202
while ( ele && ele != body ) {
203-
top += ele.scrollTop || 0;
203+
top -= ele.scrollTop || 0;
204204

205205
if ( ele == op ) {
206206
top += op.offsetTop;

0 commit comments

Comments
 (0)