Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
chat_webview
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abookCommunication
chat_webview
Commits
65d1b97e
Commit
65d1b97e
authored
Apr 09, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bugFix/#478_dose_not_match_scroll_on_keyboard_up' into 'release_sp3'
#478対応。 See merge request
!32
parents
70b9a03b
d2d01b8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
public_new/js/chat.js
+20
-0
No files found.
public_new/js/chat.js
View file @
65d1b97e
...
...
@@ -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
;
})
// チャットルーム
// メッセージ検索イベント
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment