Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add pointer API #750

Merged
merged 13 commits into from Oct 19, 2021
Merged

feat: add pointer API #750

merged 13 commits into from Oct 19, 2021

Conversation

ph-fritsche
Copy link
Member

@ph-fritsche ph-fritsche commented Oct 19, 2021

What:
add a pointer API to handle pressing and releasing pointer device (buttons)

Why:
Closes #742

How:

Checklist:

  • Documentation
  • Tests
  • Ready to be merged

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 19, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit fb1b5be:

Sandbox Source
userEvent-PR-template Configuration

@ph-fritsche ph-fritsche added this to the userEvent v14 milestone Oct 19, 2021
@ph-fritsche ph-fritsche linked an issue Oct 19, 2021 that may be closed by this pull request
4 tasks
@codecov
Copy link

codecov bot commented Oct 19, 2021

Codecov Report

Merging #750 (fb1b5be) into userEvent14 (9519979) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@              Coverage Diff               @@
##           userEvent14      #750    +/-   ##
==============================================
  Coverage       100.00%   100.00%            
==============================================
  Files               50        66    +16     
  Lines              965      1332   +367     
  Branches           389       502   +113     
==============================================
+ Hits               965      1332   +367     
Impacted Files Coverage Δ
src/tab.ts 100.00% <ø> (ø)
src/upload.ts 100.00% <ø> (ø)
src/document/applyNative.ts 100.00% <100.00%> (ø)
src/document/index.ts 100.00% <100.00%> (ø)
src/document/interceptor.ts 100.00% <100.00%> (ø)
src/document/selection.ts 100.00% <100.00%> (ø)
src/document/value.ts 100.00% <100.00%> (ø)
src/index.ts 100.00% <100.00%> (ø)
src/keyboard/getNextKeyDef.ts 100.00% <100.00%> (ø)
src/keyboard/index.ts 100.00% <100.00%> (ø)
... and 32 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8bded0e...fb1b5be. Read the comment docs.

@ph-fritsche ph-fritsche marked this pull request as ready for review October 19, 2021 18:08
@ph-fritsche ph-fritsche merged commit 0b4287c into userEvent14 Oct 19, 2021
@ph-fritsche ph-fritsche deleted the feat-pointer branch October 19, 2021 19:31
ph-fritsche added a commit that referenced this pull request Oct 20, 2021
* feat: add `pointer` API

* refactor

* add `pointerMove`

* fix fake event bubbling

* sequences of pointer actions

* default to mouse pointer

* add touch tests

* add enter/leave events on touch down/up

* add tests and handle errors

* add tests

* fix istanbul ignore

see kentcdodds/kcd-scripts#218

* add test
ph-fritsche added a commit that referenced this pull request Oct 21, 2021
* feat: add `pointer` API

* refactor

* add `pointerMove`

* fix fake event bubbling

* sequences of pointer actions

* default to mouse pointer

* add touch tests

* add enter/leave events on touch down/up

* add tests and handle errors

* add tests

* fix istanbul ignore

see kentcdodds/kcd-scripts#218

* add test
ph-fritsche added a commit that referenced this pull request Nov 28, 2021
* feat: add `pointer` API

* sequences of pointer actions

* default to mouse pointer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: pointer API
1 participant