Skip to content

[Bug][Chat] Attachment scroll buttons does not scroll if the next item is partially visible #3401

@Yanko-Georgiev

Description

@Yanko-Georgiev

Description

When the attachments are rendered in a carousel with scroll buttons, the scroll buttons will scroll only if the next item is not visible. Therefore, when the last item is partially visible, the buttons will not scroll to the end. Additionally, when more than one item is visible, it requires more than one click of the buttons to move the scroll.

Plan

KendoReact

Steps To Reproduce

  1. Open the following example: https://stackblitz.com/edit/react-p39ufbxv?file=app%2Fapp.tsx
  2. Click on the Attachments scroll buttons

Additional example: https://stackblitz.com/edit/react-y399jsqg?file=app%2Fapp.tsx

Actual Behavior

The scroll buttons do nothing sometimes.

Expected Behavior

The scroll buttons should scroll the next/previous item into view.

Reported in TicketID: 1699992

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions