camera fixes for assets with large bounding boxes

This commit is contained in:
Nick Fisher
2023-10-11 14:12:04 +08:00
parent 2923f5907f
commit b7f50df2dc
25 changed files with 4080 additions and 1692 deletions

View File

@@ -158,8 +158,8 @@ class _FilamentGestureDetectorMobileState
},
onScaleUpdate: (ScaleUpdateDetails d) async {
if (d.pointerCount == 2) {
widget.controller
.zoomUpdate(d.horizontalScale > 1 ? 0.1 : -0.1);
widget.controller.zoomUpdate(d.localFocalPoint.dx,
d.localFocalPoint.dy, d.horizontalScale > 1 ? 0.1 : -0.1);
} else if (!_scaling) {
if (_rotateOnPointerMove) {
widget.controller