Skip to content

Conversation

@ajpinedam
Copy link
Contributor

GitHub Issue: closes #21958

PR Type:

  • 🐞 Bugfix

What is the current behavior? πŸ€”

What is the new behavior? πŸš€

PR Checklist βœ…

Please check if your PR fulfills the following requirements:

Other information ℹ️

Copilot AI review requested due to automatic review settings December 27, 2025 23:33
@ajpinedam ajpinedam force-pushed the dev/anpi/fix.loopingselector.fast.scrolling.skia branch from 3094e1b to 63a3340 Compare December 27, 2025 23:33
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses two related issues in Uno Platform's time picker controls: a fast scrolling problem in LoopingSelector (issue #21958) and a display issue in 12-hour clock mode where hour "0" should show as "12" (issue #22207).

Key changes:

  • Modified LoopingSelector to handle intermediate scroll events immediately by calling Balance(), preventing items from disappearing during fast scrolling
  • Fixed TimePicker hour generation to display "12" instead of "0" in 12-hour clock mode by checking the calendar's numeric hour value
  • Added test coverage for the 12-hour clock display fix

Reviewed changes

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

File Description
src/Uno.UI/UI/Xaml/Controls/Primitives/LoopingSelector/LoopingSelector_Partial.cs Implemented differentiated handling of intermediate vs final scroll events to fix fast scrolling item disappearance
src/Uno.UI/UI/Xaml/Controls/TimePicker/TimePickerFlyoutPresenter.partial.mux.cs Added logic to override hour formatting for 12-hour clock when calendar hour is 0, ensuring "12" is displayed
src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_TimePicker.cs Added test to verify 12-hour clock displays "12" as the first hour instead of "0"

@unodevops
Copy link
Contributor

πŸ€– Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22218/wasm-skia-net9/index.html

@unodevops
Copy link
Contributor

πŸ€– Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-22218/docs/index.html

@unodevops
Copy link
Contributor

⚠️⚠️ The build 189560 has failed on Uno.UI - CI.

@unodevops
Copy link
Contributor

πŸ€– Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22218/wasm-skia-net9/index.html

@unodevops
Copy link
Contributor

πŸ€– Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-22218/docs/index.html

@unodevops
Copy link
Contributor

⚠️⚠️ The build 189576 has failed on Uno.UI - CI.

Copilot AI review requested due to automatic review settings December 30, 2025 04:38
@ajpinedam ajpinedam marked this pull request as ready for review December 30, 2025 04:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

@unodevops
Copy link
Contributor

πŸ€– Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22218/wasm-skia-net9/index.html

@unodevops
Copy link
Contributor

πŸ€– Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-22218/docs/index.html

@unodevops
Copy link
Contributor

πŸ€– Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22218/wasm-skia-net9/index.html

@unodevops
Copy link
Contributor

πŸ€– Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-22218/docs/index.html

@unodevops
Copy link
Contributor

⚠️⚠️ The build 189662 has failed on Uno.UI - CI.

Copilot AI review requested due to automatic review settings January 6, 2026 20:59
@ajpinedam ajpinedam force-pushed the dev/anpi/fix.loopingselector.fast.scrolling.skia branch from 5b4f68a to bbb5d5b Compare January 6, 2026 20:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

@unodevops
Copy link
Contributor

πŸ€– Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22218/wasm-skia-net9/index.html

@unodevops
Copy link
Contributor

πŸ€– Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-22218/docs/index.html

@ajpinedam ajpinedam force-pushed the dev/anpi/fix.loopingselector.fast.scrolling.skia branch from bbb5d5b to 8ae3ea1 Compare January 7, 2026 16:16
@unodevops
Copy link
Contributor

πŸ€– Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22218/wasm-skia-net9/index.html

@unodevops
Copy link
Contributor

πŸ€– Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-22218/docs/index.html

@unodevops
Copy link
Contributor

⚠️⚠️ The build 190287 has failed on Uno.UI - CI.

@jeromelaban jeromelaban merged commit 79cb5f6 into unoplatform:master Jan 8, 2026
51 of 53 checks passed
@ajpinedam
Copy link
Contributor Author

/unobot backport release/stable/6.4

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.

TimePicker displays blank values when scrolling

4 participants