Replies: 2 comments 3 replies
-
|
You can get from const onPress: ((e: PressEvent) => void) | undefinedexport interface PressEvent {
/** The type of press event being fired. */
type: 'pressstart' | 'pressend' | 'pressup' | 'press',
/** The pointer type that triggered the press event. */
pointerType: PointerType,
/** The target element of the press event. */
target: Element,
/** Whether the shift keyboard modifier was held during the press event. */
shiftKey: boolean,
/** Whether the ctrl keyboard modifier was held during the press event. */
ctrlKey: boolean,
/** Whether the meta keyboard modifier was held during the press event. */
metaKey: boolean,
/** Whether the alt keyboard modifier was held during the press event. */
altKey: boolean,
/** X position relative to the target. */
x: number,
/** Y position relative to the target. */
y: number,
/**
* By default, press events stop propagation to parent elements.
* In cases where a handler decides not to handle a specific event,
* it can call `continuePropagation()` to allow a parent to handle it.
*/
continuePropagation(): void
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
The
I clicked on the circled button in the picture, but the values of |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The
onClickevent can getclientXandclientYdirectly, but how do I get theonPressevent?Beta Was this translation helpful? Give feedback.
All reactions