File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Intersect.Client.Core/Interface/Game/Chat Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -416,18 +416,23 @@ private void Update()
416416
417417 if ( scrollToBottom )
418418 {
419+ mChatboxMessages . PostLayout . Enqueue ( scroller => scroller . ScrollToBottom ( ) , mChatboxMessages ) ;
419420 mChatboxMessages . RunOnMainThread ( mChatboxMessages . ScrollToBottom ) ;
420421 }
421422 else
422423 {
423- mChatboxMessages . RunOnMainThread ( ( ) =>
424+ mChatboxMessages . PostLayout . Enqueue (
425+ ( scroller , position ) =>
424426 {
425427 ApplicationContext . CurrentContext . Logger . LogTrace (
426- "Scrolling chat to {ScrollY}" ,
427- scrollPosition
428+ "Scrolling chat ({ChatNode}) to {ScrollY}" ,
429+ scroller . CanonicalName ,
430+ position
428431 ) ;
429- mChatboxMessages . ScrollToY ( scrollPosition ) ;
430- }
432+ scroller . ScrollToY ( position ) ;
433+ } ,
434+ mChatboxMessages ,
435+ scrollPosition
431436 ) ;
432437 }
433438
You can’t perform that action at this time.
0 commit comments