Commit d2d01b8b by Lee Munkyeong

#478対応。

parent 70b9a03b
......@@ -414,6 +414,26 @@ $(function() {
}
});
var beforeHeight;
var beforeScroll;
window.addEventListener("resize", function() {
var afterHeight = window.innerHeight;
if (beforeHeight > afterHeight) {
//キーボード表示時
var moreScroll = beforeHeight - afterHeight;
$('.room_container').css('margin-bottom', 0);
window.scrollTo(0, beforeScroll + moreScroll - $('.footer_content_b').height());
} else {
//キーボード非表示
$('.room_container').css('margin-bottom', $('.footer-wrap').height());
window.scrollTo(0, beforeScroll);
}
});
$('#messageInput').focusin(function(e) {
beforeHeight = window.innerHeight;
beforeScroll = window.scrollY;
})
// チャットルーム
// メッセージ検索イベント
......
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