dotnet / dotnet/maui

Clipping elements in MAUI leads to a degradation in scrolling performance.

Open
#28,629 10 comments 1 reaction 0 assignees View on GitHub
area-controls-scrollview perf/debug perf/general platform/ios platform/macos s/triaged s/verified t/bug t/perf/9.0.90
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

### Description

We had already developed a custom grid control by organizing rows and cells within it and reporting it to the framework. However, the issue was closed with the suggestion to try version 9.0.40. We checked with the requested solution with both 9.0.40 and 9.0.50, and it seems to be fixed. However, when I tested by adding more columns and rows, I encountered degradation in scrolling performance again. The provided solution is not feasible.

It seems clipping more column also affects the scrolling performance.

Previously reported issue link: [Clip Issue](https://github.com/dotnet/maui/issues/19135)

We have shared the modified sample in the repository below for your reference.

### Steps to Reproduce

1. Run the Sample from the Repo.
2. Scroll Horizontally.

### Link to public reproduction project repository

https://github.com/SethupathyD/Clipping.git

### Version with bug

9.0.50 SR5

### Is this a regression from previous behavior?

Not sure, did not test other versions

### Last version that worked well

Unknown/Other

### Affected platforms

macOS, iOS

### Affected platform versions

_No response_

### Did you find any workaround?

No

### Relevant log output

```shell

```

Contributor guide

Open the contributing guide

Research direction

Start with the sample in the linked Clipping repository and reproduce horizontal scrolling on macOS or iOS using MAUI 9.0.50 SR5. Compare behavior with 9.0.40 and review the related issue #19135; done means scrolling performance does not degrade when additional clipped columns and rows are added.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
mobile-dev, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.