Commit 839c0cc5 by Kim Peace

add on scroll console logs

parent 1a22f77a
......@@ -153,12 +153,16 @@ ChatRoom.bindUserListDisplayToggle = function () {
document.readyState
);
if (startPos == 0) {
console.log("peacekim:: window scrolled start pos 0 (remove hide)");
$("#chat_room .user_list").removeClass("hide");
} else if (winScrollTop >= startPos) {
console.log("peacekim:: window scrolled winScrollTop >= startPos (not add hide)");
if (winScrollTop >= 200) {
console.log("peacekim:: window scrolled winScrollTop >= startPos (add hide)");
$("#chat_room .user_list").addClass("hide");
}
} else {
console.log("peacekim:: window scrolled else (remove hide)");
$("#chat_room .user_list").removeClass("hide");
}
startPos = winScrollTop;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment