fix: Remove deprecations for 1.10.0 (#2809)

Removed deprecations for 1.10.0 and fixes some small unreleased regressions found when going through the examples.
This commit is contained in:
Lukas Klingsbo
2023-10-11 15:57:25 +02:00
committed by GitHub
parent 97fff0ed2b
commit 5b67b8f14a
96 changed files with 824 additions and 4925 deletions

View File

@ -2,6 +2,7 @@ import 'dart:math';
import 'package:flame/collisions.dart';
import 'package:flame/components.dart';
import 'package:flame/events.dart';
import 'package:flame/extensions.dart';
import 'package:flame/game.dart';
import 'package:flame/input.dart';
@ -191,7 +192,7 @@ Press T button to toggle player to collide with other objects.
@override
void onScroll(PointerScrollInfo info) {
camera.viewfinder.zoom += info.scrollDelta.game.y.sign * 0.08;
camera.viewfinder.zoom += info.scrollDelta.global.y.sign * 0.08;
camera.viewfinder.zoom = camera.viewfinder.zoom.clamp(0.05, 5.0);
}
}