-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from rescript-lang/touch-pointer
Add PointerEvent and TouchEvent
- Loading branch information
Showing
13 changed files
with
277 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
open UIEventsAPI | ||
|
||
/** | ||
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/PointerEvent) | ||
*/ | ||
@new | ||
external make: (~type_: string, ~eventInitDict: pointerEventInit=?) => pointerEvent = "PointerEvent" | ||
|
||
/** | ||
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/PointerEvent/getCoalescedEvents) | ||
*/ | ||
@send | ||
external getCoalescedEvents: pointerEvent => array<pointerEvent> = "getCoalescedEvents" | ||
|
||
/** | ||
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/PointerEvent/getPredictedEvents) | ||
*/ | ||
@send | ||
external getPredictedEvents: pointerEvent => array<pointerEvent> = "getPredictedEvents" | ||
|
||
include MouseEvent.Impl({ | ||
type t = pointerEvent | ||
}) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
open UIEventsAPI | ||
|
||
/** | ||
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Touch) | ||
*/ | ||
@new | ||
external make: touchInit => touch = "Touch" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
open UIEventsAPI | ||
|
||
/** | ||
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/TouchEvent) | ||
*/ | ||
@new | ||
external make: (~type_: string, ~eventInitDict: touchEventInit=?) => touchEvent = "TouchEvent" | ||
|
||
include UIEvent.Impl({ | ||
type t = touchEvent | ||
}) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
open UIEventsAPI | ||
|
||
/** | ||
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/TouchList/item) | ||
*/ | ||
@send | ||
external item: (touchList, int) => touch = "item" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters