Toggle navigation
Toggle navigation
This project
Loading...
Sign in
chenchao
/
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
梁志锋
2015-12-01 14:26:48 +0800
Commit
d29b2db394b8cec226d935300ec082461f4eda07
1 parent
e74c0d5e
use requestAnimationFrame for scroll event
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
static/js/home/maybe-like.js
static/js/product/newsale/discount.js
static/js/product/newsale/hot-rank.js
static/js/home/maybe-like.js
View file @
d29b2db
...
...
@@ -133,7 +133,7 @@ function search() {
});
}
$
(
'.maybe-like p'
).
on
(
'touchstart'
,
function
(
e
)
{
$
(
'.maybe-like p'
).
on
(
'touchstart'
,
function
(
e
)
{
search
();
});
...
...
static/js/product/newsale/discount.js
View file @
d29b2db
...
...
@@ -347,7 +347,6 @@ $listNav.on('touchend touchcancel', function(e) {
search
();
}
}
e
.
stopPropagation
();
});
...
...
static/js/product/newsale/hot-rank.js
View file @
d29b2db
...
...
@@ -72,7 +72,7 @@ $(window).scroll(function() {
hotrank
(
page
,
sort
,
id
,
notab
);
hotnav
=
new
Hammer
(
document
.
getElementById
(
'hotRank'
));
hotnav
.
on
(
'tap'
,
function
(
e
)
{
hotnav
.
on
(
'tap'
,
function
(
e
)
{
var
ev
=
ev
||
window
.
event
;
var
target
=
ev
.
target
||
ev
.
srcElement
;
...
...
Please
register
or
login
to post a comment