Fix format

This commit is contained in:
Zoe Roux 2024-02-18 15:42:29 +01:00
parent 79dc4e5f33
commit 19485a110a

View File

@ -286,7 +286,10 @@ export const HoverTouch = ({ children, ...props }: { children: ReactNode }) => {
}} }}
onPress={(e) => { onPress={(e) => {
e.preventDefault(); e.preventDefault();
onAnyPress({ pointerType: isTouch ? "touch" : "mouse", x: e.nativeEvent.locationX ?? e.nativeEvent.pageX }); onAnyPress({
pointerType: isTouch ? "touch" : "mouse",
x: e.nativeEvent.locationX ?? e.nativeEvent.pageX,
});
}} }}
onLayout={(e) => { onLayout={(e) => {
playerWidth.current = e.nativeEvent.layout.width; playerWidth.current = e.nativeEvent.layout.width;