Commit aba48fe7 by Kim Peace

added console log for chat room on scroll

parent c5d827b6
......@@ -136,7 +136,16 @@ ChatRoom.bindUserListDisplayToggle = function () {
let startPos = 0;
let winScrollTop = 0;
$(window).on("scroll", function () {
console.log("peacekim:: window scrolled");
winScrollTop = $(this).scrollTop();
console.log(
"peacekim:: window scrolled winScrollTop: " +
winScrollTop +
", startPos: " +
startPos +
", document state: " +
document.readyState
);
if (startPos == 0) {
$("#chat_room .user_list").removeClass("hide");
} else if (winScrollTop >= startPos) {
......
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