scroll if hidden hints are toggled

pull/118/head
Jon Eugster 3 years ago
parent 95480a752d
commit 8f12aab3b0

@ -93,7 +93,7 @@ function PlayableLevel({worldId, levelId}) {
// TODO: For some reason this is always called twice // TODO: For some reason this is always called twice
console.debug('scroll chat') console.debug('scroll chat')
chatRef.current!.lastElementChild?.scrollIntoView() //scrollTo(0,0) chatRef.current!.lastElementChild?.scrollIntoView() //scrollTo(0,0)
}, [proof]) }, [proof, showHiddenHints])
React.useEffect(() => { React.useEffect(() => {
if (!commandLineMode) { if (!commandLineMode) {

Loading…
Cancel
Save