react-three-fiber icon indicating copy to clipboard operation
react-three-fiber copied to clipboard

onPointerMissed is never called in react-native

Open krzys-h opened this issue 1 year ago • 2 comments

Similar story to #3315 - the code attempts to access e.offsetX here: https://github.com/pmndrs/react-three-fiber/blob/v8.16.8/packages/fiber/src/core/events.ts#L175-L176 which does not exist on react-native events.

This in turn causes the calculateDistance calculation to always return NaN and if (delta <= 2) to never match.

krzys-h avatar Jul 31 '24 09:07 krzys-h

Is there any update about this? I can fix it

cc: @CodyJasonBennett

Neosoulink avatar Aug 26 '24 07:08 Neosoulink

No, generally updates occur naturally in their pertinent issues; you don't have to ping me for an update.

I'm not sure this is exactly true of a diagnosis, or perhaps we're not mutating the right reference here.

https://github.com/pmndrs/react-three-fiber/blob/3200547951f0f4c0b6859f5848012cf9d003cb70/packages/fiber/src/native/Canvas.tsx#L143-L156

CodyJasonBennett avatar Aug 26 '24 07:08 CodyJasonBennett