Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
biao
2015-12-15 20:44:24 +0800
Commit
5d10a483a131e10424457ea5d7fb8ad3af9b1aac
1 parent
6d5ffa9a
update for make the recommend-for-you be sent after scroll. code review by LZF
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
static/js/product/recommend-for-you-product-desc.js
static/js/product/recommend-for-you-product-desc.js
View file @
5d10a48
...
...
@@ -49,8 +49,12 @@ function request() {
}
}
$
(
window
).
scroll
(
function
()
{
function
scrollHandler
()
{
if
(
!
end
||
$
(
window
).
scrollTop
()
+
winH
>=
$
(
document
).
height
()
-
50
)
{
request
();
}
}
$
(
window
).
scroll
(
function
()
{
window
.
requestAnimationFrame
(
scrollHandler
);
});
...
...
Please
register
or
login
to post a comment