Skip to content

Commit

Permalink
Adapt position with viewport offset when hit testing children
Browse files Browse the repository at this point in the history
  • Loading branch information
amantoux committed Aug 11, 2024
1 parent e7c7a9a commit 1aed2cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/fleather/lib/src/rendering/editor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,8 @@ class RenderEditor extends RenderEditableContainerBox

@override
bool hitTestChildren(BoxHitTestResult result, {required Offset position}) {
return defaultHitTestChildren(result, position: position);
final Offset effectivePosition = position - Offset(0.0, -_offset.pixels);
return defaultHitTestChildren(result, position: effectivePosition);
}

void _paintHandleLayers(
Expand Down

0 comments on commit 1aed2cb

Please sign in to comment.