Add offsetX, offsetY to MouseEvent

Summary: Changelog: [Internal] - Adding offsetX, offsetY to MouseEvent interface. It's currently provided in a draft form: https://drafts.csswg.org/cssom-view/#extensions-to-the-mouseevent-interface

Reviewed By: vincentriemer

Differential Revision: D37436051

fbshipit-source-id: b3bb85acb82db348d3e1085881232e5358674ed7
This commit is contained in:
Luna Wei 2022-07-05 13:03:11 -07:00 коммит произвёл Facebook GitHub Bot
Родитель 54f03817e0
Коммит d9b8e07b00
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -157,6 +157,15 @@ export interface NativeMouseEvent extends NativeUIEvent {
* The secondary target for the event, if there is one.
*/
+relatedTarget: null | number | React.ElementRef<HostComponent<mixed>>;
// offset is proposed: https://drafts.csswg.org/cssom-view/#extensions-to-the-mouseevent-interface
/**
* The X coordinate of the mouse pointer between that event and the padding edge of the target node
*/
+offsetX: number;
/**
* The Y coordinate of the mouse pointer between that event and the padding edge of the target node
*/
+offsetY: number;
}
/**