Esri / calcite-design-system

A monorepo containing the packages for Esri's Calcite Design System
https://developers.arcgis.com/calcite-design-system/
Other
295 stars 76 forks source link

[Carousel] Add support for swipe / flick touch interaction #9209

Open macandcheese opened 7 months ago

macandcheese commented 7 months ago

Check existing issues

Description

The Carousel component should support swipe / flick interaction on touch enabled devices - where this interaction triggers next / previous slide.

This may not be desirable on desktop, where a similar pointerEvent with a pixel based threshold could be inadvertently trigger by a user highlighting + selecting text, etc.

Acceptance Criteria

Swipe / Flick support is added for touch events within Carousel.

Relevant Info

Follow-up from initial PR.

Which Component

Carousel / Carousel Item

Example Use Case

As a mobile touch user, I can advance / retreat through Carousel Items using the common swipe / touch behavior.

Priority impact

p3 - want for upcoming milestone

Calcite package

Esri team

Calcite (design)

geospatialem commented 2 months ago

Added the design label for expertise/consideration on the design/behavior and if additional considerations are needed prior to implementation.