Skip to content

[Bug]: Hitting polygon uses aabb rect #1148

Description

@Nezznee

What happened?

When hitting a polygon with any eraser or selector in touchAnywhere or touchEdges mode, touching the aabb rect registers as a hit. This does not seem to affect shapes.
Removing this part from isPolygonInPolygon makes this behaviour disappear but then the check isn't done properly

for (final (a, b) in _edgesOf(poly1)) {
      for (final (c, d) in _edgesOf(poly2)) {
        if (_segmentsIntersect(a, b, c, d)) return true;
      }
    }

Version

2.5.3-rc.1 and 2.6.0-beta.0

Platform

Android

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
📕 Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions