Skip to content

Commit

Permalink
Fix merging of develop branch
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Sep 10, 2022
1 parent 23b4a95 commit 8cd83f1
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
6 changes: 5 additions & 1 deletion app/lib/cubits/current_index.dart
Original file line number Diff line number Diff line change
Expand Up @@ -363,5 +363,9 @@ class CurrentIndexCubit extends Cubit<CurrentIndex> {
location: location ?? state.location, saved: saved ?? state.saved));
}

void resetInput() {}
void resetInput() {
state.temporaryHandler?.resetInput();
state.handler.resetInput();
emit(state.copyWith(pointers: []));
}
}
2 changes: 1 addition & 1 deletion app/lib/handlers/area.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class AreaHandler extends Handler<AreaPainter> {
];

@override
void resetInput(DocumentBloc bloc) => currentRect = null;
void resetInput() => currentRect = null;

@override
void onPointerDown(
Expand Down
2 changes: 2 additions & 0 deletions app/lib/handlers/handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ abstract class Handler<T> {
void onLongPressEnd(
Size viewportSize, BuildContext context, LongPressEndDetails details) {}

void resetInput() {}

int? getColor(DocumentBloc bloc) => null;

T? setColor(DocumentBloc bloc, int color) => null;
Expand Down
2 changes: 1 addition & 1 deletion app/lib/handlers/shape.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ShapeHandler extends Handler {
}

@override
void resetInput(DocumentBloc bloc) {
void resetInput() {
elements.clear();
submittedElements.clear();
}
Expand Down
1 change: 0 additions & 1 deletion app/lib/views/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ class _MainViewViewportState extends State<MainViewViewport>
},
onPointerDown: (PointerDownEvent event) {
cubit.addPointer(event.pointer);
final bloc = context.read<DocumentBloc>();
if (event.kind == PointerDeviceKind.stylus &&
event.buttons == kPrimaryStylusButton) {
cubit.changeTemporaryHandler(
Expand Down
2 changes: 1 addition & 1 deletion fastlane/metadata/android/en-US/changelogs/44.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
* Fix position and size issues when moving elements
* Fix gesture issues on area and shape painter and area change problem
*
* Reset pointer on app hide, see #280

1 comment on commit 8cd83f1

@vercel
Copy link

@vercel vercel bot commented on 8cd83f1 Sep 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.