Skip to content

chore: Update PortalOverlay's position in DragHandleWrapper only when buttons are shown #3433

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

johannes-weber
Copy link
Member

Before this change, the update position effect has been run on every animation frame even though no position buttons have been shown.
With this change, the position calculation is only done when the position buttons are visible.

Description

Related links, issue #, if available: n/a

How has this been tested?

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

… buttons are shown

Before this change, the update position effect has been run on every animation frame even though no position buttons have been shown.
With this change, the position calculation is only done when the position buttons are visible.
Copy link

codecov bot commented Apr 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.51%. Comparing base (9ea8f8d) to head (0169e9e).

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #3433    +/-   ##
========================================
  Coverage   96.51%   96.51%            
========================================
  Files         806      806            
  Lines       23032    23032            
  Branches     7551     7965   +414     
========================================
  Hits        22230    22230            
+ Misses        795      748    -47     
- Partials        7       54    +47     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant