mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
Attempt to improve performance of javascript code
Prevent bubbling of scroll event in .timsChatMessageContainer in order to avoid some rather expensive scroll handlers
This commit is contained in:
parent
5280a3aba9
commit
0c9eecda61
@ -293,6 +293,8 @@ Scroll down when autoscroll is being activated.
|
||||
$('.timsChatMessageContainer.active').scrollTop $('.timsChatMessageContainer.active').prop 'scrollHeight'
|
||||
|
||||
$('.timsChatMessageContainer.active').on 'scroll', (event) ->
|
||||
event.stopPropagation();
|
||||
|
||||
element = $ @
|
||||
scrollTop = element.scrollTop()
|
||||
scrollHeight = element.prop 'scrollHeight'
|
||||
|
Loading…
Reference in New Issue
Block a user