remotes/1693176582716663532/tmp_refs/heads/watchparty
Outrun Colors 2022-09-27 18:08:38 -05:00
parent c23bfa1160
commit 2073ef9dbb
No known key found for this signature in database
GPG Key ID: 0426976DCEFE6073
2 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "chat",
"version": "0.1.25",
"version": "0.1.26",
"main": "./src/index.tsx",
"license": "MIT",
"dependencies": {

View File

@ -38,7 +38,11 @@ function AppInner() {
const initiallyScrolledDown = useRef(false);
const { messages, quote, userToDm, updateUserToDm } = useChat();
const [focused, setFocused] = useState(false);
const toggleFocus = useCallback(() => setFocused(prev => !prev), []);
const toggleFocus = useCallback(() => {
setTimeout(() => {
setFocused(prev => !prev);
}, 0);
}, []);
// See: https://css-tricks.com/the-trick-to-viewport-units-on-mobile/
useEffect(() => {