mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Reset oldScrollTop to null when clearing the chat
This commit is contained in:
parent
f82717d839
commit
18b097ff9b
@ -120,7 +120,7 @@ consoleMock ?=
|
||||
$('#timsChatClear').click (event) ->
|
||||
event.preventDefault()
|
||||
$('.timsChatMessage').remove()
|
||||
@oldScrollTop = $('.timsChatMessageContainer').scrollTop()
|
||||
@oldScrollTop = null
|
||||
$('.timsChatMessageContainer').scrollTop $('.timsChatMessageContainer ul').height()
|
||||
$('#timsChatInput').focus()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user