Skip to content

fix: [Horizontal Scroll previous button doesn't work in 2 column width screen size] in [Horizontal Scroll] #5676

@JennyzhaoM

Description

@JennyzhaoM

🐛 Bug Report

💻 Repro or Code Sample

Change screen width to makes the Default scroll show only "Card number 1" and "Card number 2".
Click the ">" button to scroll left,
Click the "< " button to scroll right
Observe it is not able to scroll back to previous card 1, it stays at the current position.

🤔 Expected Behavior

Scroll back to the "card number 1" position, and display both "card #1" and "card #2"

😯 Current Behavior

It is not able to scroll back to previous card 1, it stays at the current position.

💁 Possible Solution

handle the case when nextIndex equal to current

🔦 Context

🌍 Your Environment

Microsoft Edge

  • OS & Device: Windows on PC
  • Browser Microsoft Edge
  • Version 98.0.1108.62 (Official build) (64-bit), Window 11

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions