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

@@ -434,11 +434,11 @@ class FilamentControllerMethodChannel extends FilamentController {
await _channel.invokeMethod("scrollBegin");
}
Future zoomUpdate(double z) async {
Future zoomUpdate(double x, double y, double z) async {
if (_viewer == null || _resizing) {
throw Exception("No viewer available, ignoring");
}
await _channel.invokeMethod("scrollUpdate", [0.0, 0.0, z]);
await _channel.invokeMethod("scrollUpdate", [x, y, z]);
}
Future zoomEnd() async {