Add "data-touch" option to carousel configuration

Created on 15 October 2019, almost 6 years ago
Updated 13 June 2025, about 2 months ago

Bootstrap 4 carousel provides a "touch" option to define "Whether the carousel should support left/right swipe interactions on touchscreen devices."

This setting would be a great addition to the module, as it would provide better usability on touch devices.

✨ Feature request
Status

Active

Version

5.4

Component

Carousel

Created by

πŸ‡΅πŸ‡ΉPortugal rolando.isidoro

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States thalemn

    I created a copy of the views-bootstrap-carousel.html.twig template and added the option there:

    data-bs-interval="{{ interval }}"{% endif %} data-bs-pause="{% if pause %}hover{% else %}false{% endif %}"
    data-wrap="{{ wrap }}">
Production build 0.71.5 2024