forked from rDrama/rDrama
Boom
parent
c23bfa1160
commit
2073ef9dbb
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "chat",
|
"name": "chat",
|
||||||
"version": "0.1.25",
|
"version": "0.1.26",
|
||||||
"main": "./src/index.tsx",
|
"main": "./src/index.tsx",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -38,7 +38,11 @@ function AppInner() {
|
||||||
const initiallyScrolledDown = useRef(false);
|
const initiallyScrolledDown = useRef(false);
|
||||||
const { messages, quote, userToDm, updateUserToDm } = useChat();
|
const { messages, quote, userToDm, updateUserToDm } = useChat();
|
||||||
const [focused, setFocused] = useState(false);
|
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/
|
// See: https://css-tricks.com/the-trick-to-viewport-units-on-mobile/
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
Loading…
Reference in New Issue