Skip to content

Commit

Permalink
Remove debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Dec 11, 2023
1 parent 1d598ce commit e344817
Show file tree
Hide file tree
Showing 6 changed files with 573 additions and 572 deletions.
3 changes: 0 additions & 3 deletions app/lib/handlers/area.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,12 @@ class AreaHandler extends Handler<AreaTool> {
@override
bool onScaleStart(ScaleStartDetails details, EventContext context) {
final currentIndex = context.getCurrentIndex();
print('onScaleStart: $details');
if (details.pointerCount > 1 ||
currentIndex.buttons == kSecondaryMouseButton) return true;
final globalPosition =
context.getCameraTransform().localToGlobal(details.localFocalPoint);

start = globalPosition;
print('start: $start');
return true;
}

Expand All @@ -79,7 +77,6 @@ class AreaHandler extends Handler<AreaTool> {
@override
Future<void> onScaleEnd(ScaleEndDetails details, EventContext context) async {
final currentIndex = context.getCurrentIndex();
print('onScaleEnd: $details');
final rect = currentRect;
if (details.pointerCount > 1 ||
currentIndex.buttons == kSecondaryMouseButton ||
Expand Down
3 changes: 3 additions & 0 deletions app/lib/views/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,9 @@ class _MainViewViewportState extends State<MainViewViewport>
onPointerCancel: (event) {
cubit.removePointer(event.pointer);
cubit.removeButtons();
if (cubit.state.pointers.isEmpty) {
_isScalingDisabled = null;
}
},
child: BlocBuilder<TransformCubit, CameraTransform>(
builder: (context, transform) => MouseRegion(
Expand Down
4 changes: 2 additions & 2 deletions app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1318,10 +1318,10 @@ packages:
dependency: "direct main"
description:
name: url_launcher
sha256: b1c9e98774adf8820c96fbc7ae3601231d324a7d5ebd8babe27b6dfac91357ba
sha256: e9aa5ea75c84cf46b3db4eea212523591211c3cf2e13099ee4ec147f54201c86
url: "https://pub.dev"
source: hosted
version: "6.2.1"
version: "6.2.2"
url_launcher_android:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies:
intl: ^0.18.0
path_provider: ^2.1.1
shared_preferences: ^2.2.2
url_launcher: ^6.2.1
url_launcher: ^6.2.2
file_picker: ^6.1.1
phosphor_flutter:
git:
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"last 1 safari version"
]
},
"packageManager": "pnpm@8.11.0",
"packageManager": "pnpm@8.12.0",
"devDependencies": {
"@docusaurus/module-type-aliases": "3.0.1",
"@docusaurus/tsconfig": "3.0.1",
Expand Down
Loading

0 comments on commit e344817

Please sign in to comment.