Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
061142e0
Commit
061142e0
authored
Jun 29, 2020
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix. Don't scroll down if the user had manually scrolled up
parent
1062fbdd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/converse-chatview.js
src/converse-chatview.js
+2
-3
src/converse-muc-views.js
src/converse-muc-views.js
+2
-1
No files found.
src/converse-chatview.js
View file @
061142e0
...
...
@@ -243,7 +243,6 @@ converse.plugins.add('converse-chatview', {
const
result
=
tpl_chatbox
(
Object
.
assign
(
this
.
model
.
toJSON
(),
{
'
unread_msgs
'
:
__
(
'
You have unread messages
'
),
'
markScrolled
'
:
()
=>
this
.
markScrolled
()
}
)
...
...
@@ -1137,8 +1136,8 @@ converse.plugins.add('converse-chatview', {
_markScrolled
:
function
()
{
let
scrolled
=
true
;
const
is_at_bottom
=
(
this
.
content
.
scrollTop
+
this
.
content
.
clientHeight
)
>=
this
.
content
.
scrollHeight
-
62
;
// sigh...
(
this
.
msgs_container
.
scrollTop
+
this
.
msgs_container
.
clientHeight
)
>=
this
.
msgs_container
.
scrollHeight
-
62
;
// sigh...
if
(
is_at_bottom
)
{
scrolled
=
false
;
...
...
src/converse-muc-views.js
View file @
061142e0
...
...
@@ -512,8 +512,9 @@ converse.plugins.add('converse-muc-views', {
async
render
()
{
this
.
el
.
setAttribute
(
'
id
'
,
this
.
model
.
get
(
'
box_id
'
));
render
(
tpl_chatroom
({
'
markScrolled
'
:
()
=>
this
.
markScrolled
(),
'
muc_show_logs_before_join
'
:
api
.
settings
.
get
(
'
muc_show_logs_before_join
'
),
'
show_send_button
'
:
_converse
.
show_send_button
'
show_send_button
'
:
_converse
.
show_send_button
,
}),
this
.
el
);
this
.
notifications
=
this
.
el
.
querySelector
(
'
.chat-content__notifications
'
);
...
...
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