Skip to content

Commit

Permalink
Pointer Events (#1481)
Browse files Browse the repository at this point in the history
Fixes #1308
  • Loading branch information
NiedziolkaMichal committed Nov 7, 2022
1 parent 6214cac commit 5eb52a9
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
38 changes: 38 additions & 0 deletions schema/html5/core-scripting.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,44 @@ datatypes w = "http://whattf.org/datatype-draft"
scripting.attr.onwheel =
attribute onwheel { common.data.functionbody }

## Pointer Events
common.attrs.scripting &=
( scripting.attr.onpointerover?
& scripting.attr.onpointerenter?
& scripting.attr.onpointerdown?
& scripting.attr.onpointermove?
& scripting.attr.onpointerrawupdate?
& scripting.attr.onpointerup?
& scripting.attr.onpointercancel?
& scripting.attr.onpointerout?
& scripting.attr.onpointerleave?
& scripting.attr.ongotpointercapture?
& scripting.attr.onlostpointercapture?
)

scripting.attr.onpointerover =
attribute onpointerover { common.data.functionbody }
scripting.attr.onpointerenter =
attribute onpointerenter { common.data.functionbody }
scripting.attr.onpointerdown =
attribute onpointerdown { common.data.functionbody }
scripting.attr.onpointermove =
attribute onpointermove { common.data.functionbody }
scripting.attr.onpointerrawupdate =
attribute onpointerrawupdate { common.data.functionbody }
scripting.attr.onpointerup =
attribute onpointerup { common.data.functionbody }
scripting.attr.onpointercancel =
attribute onpointercancel { common.data.functionbody }
scripting.attr.onpointerout =
attribute onpointerout { common.data.functionbody }
scripting.attr.onpointerleave =
attribute onpointerleave { common.data.functionbody }
scripting.attr.ongotpointercapture =
attribute ongotpointercapture { common.data.functionbody }
scripting.attr.onlostpointercapture =
attribute onlostpointercapture { common.data.functionbody }

# scripting.attr.common =
# ( scripting.attr.mouse
# & scripting.attr.keyboard
Expand Down
11 changes: 11 additions & 0 deletions schema/html5/embed.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,17 @@ namespace local = ""
| onvolumechange
| onwaiting
| onwheel
| onpointerover
| onpointerenter
| onpointerdown
| onpointermove
| onpointerrawupdate
| onpointerup
| onpointercancel
| onpointerout
| onpointerleave
| ongotpointercapture
| onlostpointercapture
| role
| aria-atomic
| aria-busy
Expand Down

0 comments on commit 5eb52a9

Please sign in to comment.