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

Don't select invisible portions of truncated elements during draw-to-select #4393

Merged
merged 8 commits into from
Oct 18, 2023

Conversation

ruggi
Copy link
Contributor

@ruggi ruggi commented Oct 18, 2023

Fixes #4391

Problem:

Truncated elements have their measurements calculated incorrectly (known issue), which means they can be interacted with when the mouse is over their invisible (truncated) portions. This means that draw-to-select is broken as well.

Kapture 2023-10-18 at 12 26 43

Fix:

This is purely a mitigation of the underlying issue, that omits those elements from the draw-to-select targets when their invisible portions are selected.

Kapture 2023-10-18 at 12 27 47

Again, this does not solve the problem, but excluding those portions from the draw-to-select reduces the impact of the problem while we figure out how to solve the measurements altogether.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 18, 2023

Try me

@relativeci
Copy link

relativeci bot commented Oct 18, 2023

Job #8761: Bundle Size — 63.64MiB (~+0.01%).

96b2cb5(current) vs 5957b21 master#8758(baseline)

Warning

Bundle contains 64 duplicate packages – View duplicate packages

Bundle metrics  Change 2 changes Regression 1 regression
                 Current
Job #8761
     Baseline
Job #8758
Regression  Initial JS 35.92MiB(~+0.01%) 35.91MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 18.45% 0%
No change  Chunks 28 28
No change  Assets 32 32
No change  Modules 4015 4015
No change  Duplicate Modules 455 455
No change  Duplicate Code 31.45% 31.45%
No change  Packages 409 409
No change  Duplicate Packages 64 64
Bundle size by type  Change 1 change Regression 1 regression
                 Current
Job #8761
     Baseline
Job #8758
Regression  JS 63.63MiB (~+0.01%) 63.62MiB
Not changed  HTML 11.54KiB 11.54KiB

View job #8761 reportView fix/selection-area-overflow-hidd... branch activity

@github-actions
Copy link
Contributor

github-actions bot commented Oct 18, 2023

Performance test results:
(Chart1)
(Chart2)

@ruggi ruggi marked this pull request as draft October 18, 2023 13:00
@ruggi ruggi marked this pull request as ready for review October 18, 2023 16:18
@ruggi ruggi merged commit 62f5d58 into master Oct 18, 2023
9 checks passed
@ruggi ruggi deleted the fix/selection-area-overflow-hidden branch October 18, 2023 16:19
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.

Ignore invisible portions of truncated elements in draw-to-select
5 participants