jnsmalm / pixi3d

The 3D renderer for PixiJS. Seamless integration with 2D applications.
https://pixi3d.org
MIT License
759 stars 44 forks source link

CameraOrbitControl is not touch screen friendly #53

Closed goldenratio closed 1 year ago

goldenratio commented 3 years ago

is it possible to use pointerdown and pointerup so it's touch screen friendly? https://github.com/jnsmalm/pixi3d/blob/develop/src/camera/camera-orbit-control.ts#L42

jnsmalm commented 3 years ago

Yes, want to do this but didn't have the time yet.

lovelle-cardoso commented 1 year ago

@goldenratio @jnsmalm I needed this feature too, so I made a pull request for it here: https://github.com/jnsmalm/pixi3d/pull/163

jnsmalm commented 1 year ago

Thanks @lovelle-cardoso ! Will be available in next release.

jnsmalm commented 1 year ago

@lovelle-cardoso When I try to use the orbit camera now I get an error in console (even though the functionality seems to work fine). I use a normal mouse/trackpad and macOS/Chrome. Would you have time to have a look?

image
lovelle-cardoso commented 1 year ago

@jnsmalm Sure thing! Should be fixed here: https://github.com/jnsmalm/pixi3d/pull/168

lovelle-cardoso commented 1 year ago

@jnsmalm Cleaned up PR here https://github.com/jnsmalm/pixi3d/pull/170