Skip to content

[JAMSVGImageView pointInside: withEvent:] unexpectedly applies only to interior paths. #19

Description

@rwe

This differs unexpectedly from the behavior of UIImageView which, when userInteractionEnabled is true, detects hits on the entire frame regardless of transparent pixels. The default behaviour makes e.g. custom buttons tappable in their entire frame as expected.

Being able to detect hits on paths is certainly useful, however, so it might be better to have this as a separate flag (e.g. passThroughEventsOnTransparentRegions or userInteractionExcludesTransparent or something) that defaults to false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions