Skip to content

Finding the tap location inside a group #502

@aure

Description

@aure

The event location that is returned onTap or onTouchPressed seems to be relative to the entire window. Is there a way I can easily deduce the location of a tap within a button (clickable area). I want to be able to map the height location of the tap within the button to a variable from 0-1.

This might be less difficult on iOS because of a fixed screen size, but with a Mac app that can scale, it gets difficult because the numbers change when the window is resized.

My apologies if this is an easy one. :)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions