mirror of
https://github.com/sct/overseerr.git
synced 2025-12-26 08:25:07 +01:00
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;
|
|
};
|