ソースを参照

fix: Prevent unnecessary autoscroll when buttons appear (#1280) (#2334)

* fix: Prevent unnecessary autoscroll when buttons appear (#1280)

* Remove commented out code

---------

Co-authored-by: Matt Rubens <[email protected]>
Kyle Tse 10 ヶ月 前
コミット
84c703e050
1 ファイル変更0 行追加2 行削除
  1. 0 2
      webview-ui/src/components/chat/ChatView.tsx

+ 0 - 2
webview-ui/src/components/chat/ChatView.tsx

@@ -421,7 +421,6 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
 			setTextAreaDisabled(true)
 			setClineAsk(undefined)
 			setEnableButtons(false)
-			disableAutoScrollRef.current = false
 		},
 		[clineAsk, startNewTask],
 	)
@@ -468,7 +467,6 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
 			setTextAreaDisabled(true)
 			setClineAsk(undefined)
 			setEnableButtons(false)
-			disableAutoScrollRef.current = false
 		},
 		[clineAsk, startNewTask, isStreaming],
 	)