Commit 65d1b97e by Lee Munkyeong

Merge branch 'bugFix/#478_dose_not_match_scroll_on_keyboard_up' into 'release_sp3'

#478対応。

See merge request !32
parents 70b9a03b d2d01b8b
...@@ -414,6 +414,26 @@ $(function() { ...@@ -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