microsoft / microsoft/AdaptiveCards
[Authoring] Partially swiping on a carousel control displays a blank canvas instead of a preview of next page.
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 2k
- Forks
- 595
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 1
Description
Target Application
Any
Application Operating System
Windows
Schema Version
1.6
Problem Description
Using a finger/mouse to pan an adaptive card carousel page could be better. If the user presses & holds a page, then drags the page far to the left or right (well past the edge of the control), the carousel can show a completely blank gray area. Letting the finger go snaps the new page in.
Expected Outcome
A preview of the next page should be shown
Actual Outcome
A blank canvas is shown
Card JSON
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.6",
"body": {
"type": "Carousel",
"timer": 5000,
"pages": [
{
"type": "CarouselPage",
"id": "firstCarouselPage",
"selectAction": {
"type": "Action.OpenUrl",
"title": "Click for more information about the first carousel page!",
"url": "https://adaptivecards.io/"
},
"items": [
{
"type": "Image",
"url": "https://adaptivecards.io/content/cats/1.png",
"altText": "Cat",
"size": "medium"
}
]
},
{
"type": "CarouselPage",
"id": "theSecondCarouselPage",
"items": [
{
"type": "Image",
"url": "https://adaptivecards.io/content/cats/2.png",
"altText": "Cat with bandana",
"size": "medium"
}
]
},
{
"type": "CarouselPage",
"id": "last-carousel-page",
"items": [
{
"type": "Image",
"url": "https://adaptivecards.io/content/cats/3.png",
"altText": "That's a cool cat!",
"size": "medium"
}
]
}
]
},
"actions": [
{
"type": "Action.OpenUrl",
"title": "See more",
"url": "https://adaptivecards.io"
},
{
"type": "Action.OpenUrl",
"title": "Another action",
"url": "https://adaptivecards.io"
}
]
}
Repro Steps
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the swipe behavior on Windows with the supplied Adaptive Card JSON and inspect the carousel control's pan and page-rendering entry points. Confirm that dragging partially toward another page shows a preview rather than a blank gray canvas, while release still snaps to the new page.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100