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

187323603 drag over webview bug #1530

Merged
merged 3 commits into from
Oct 2, 2024
Merged

Conversation

eireland
Copy link
Contributor

@eireland eireland commented Oct 2, 2024

Fixes bug where dragging components over a webview makes the component lose the pointer focus. This captures the pointer while dragging a component

@eireland eireland marked this pull request as ready for review October 2, 2024 05:16
@eireland eireland requested a review from kswenson October 2, 2024 05:17
@eireland eireland added the v3 CODAP v3 label Oct 2, 2024
Copy link
Member

@kswenson kswenson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good -- I'm impressed that it works as well as it does. One suggestion to add a check for whether the pointer is captured rather than blindly capturing it multiple times.

v3/src/components/container/free-tile-component.tsx Outdated Show resolved Hide resolved
Copy link

codecov bot commented Oct 2, 2024

Codecov Report

Attention: Patch coverage is 57.14286% with 3 lines in your changes missing coverage. Please review.

Project coverage is 85.09%. Comparing base (4f8ddcc) to head (5fb4462).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
...3/src/components/container/free-tile-component.tsx 57.14% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1530      +/-   ##
==========================================
- Coverage   85.10%   85.09%   -0.01%     
==========================================
  Files         563      563              
  Lines       28149    28156       +7     
  Branches     7728     7730       +2     
==========================================
+ Hits        23955    23959       +4     
- Misses       3888     4041     +153     
+ Partials      306      156     -150     
Flag Coverage Δ
cypress 74.39% <57.14%> (-0.01%) ⬇️
jest 53.31% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

cypress bot commented Oct 2, 2024

codap-v3    Run #4520

Run Properties:  status check passed Passed #4520  •  git commit ab40b73ce4: 187323603 drag over webview bug (#1530)
Project codap-v3
Branch Review main
Run status status check passed Passed #4520
Run duration 08m 53s
Commit git commit ab40b73ce4: 187323603 drag over webview bug (#1530)
Committer Evangeline Ireland
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 30
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 227
View all changes introduced in this branch ↗︎

@eireland eireland merged commit ab40b73 into main Oct 2, 2024
9 of 11 checks passed
@eireland eireland deleted the 187323603-drag-over-webview-bug branch October 2, 2024 19:17
lublagg pushed a commit that referenced this pull request Oct 4, 2024
* Adds a pointer capture on component drag

* remove commented out code

* PR fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v3 CODAP v3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants