mobile behavior remains mostly the same, except after the first click, a second click anywhere else will go through to the title.
8 lines
223 B
TypeScript
8 lines
223 B
TypeScript
import { useContext } from 'react';
|
|
import { InteractionContext } from '../context/InteractionContext';
|
|
|
|
export const useIsTouch = (): boolean => {
|
|
const { isTouch } = useContext(InteractionContext);
|
|
return isTouch;
|
|
};
|