Skip to content

Commit

Permalink
Tweak wording for no-touch carousel (#32688)
Browse files Browse the repository at this point in the history
based on changes made in the backport #32639
  • Loading branch information
patrickhlauke committed Jan 6, 2021
1 parent 88d35b7 commit d1a62b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/content/docs/5.0/components/carousel.md
Expand Up @@ -206,9 +206,9 @@ Add `data-bs-interval=""` to a `.carousel-item` to change the amount of time to
</div>
{{< /example >}}

### Suppressing touch swiping
### Disable touch swiping

By default, carousels support swiping left/right on touchscreen devices to move between slides. This can be explicitly suppressed using the `data-bs-touch` attribute. The example below also does not include the `data-bs-ride` attribute, and has `data-bs-interval="false"`, meaning that it won't autoplay.
Carousels support swiping left/right on touchscreen devices to move between slides. This can be disabled using the `data-bs-touch` attribute. The example below also does not include the `data-bs-ride` attribute and has `data-bs-interval="false"` so it doesn't autoplay.

{{< example >}}
<div id="carouselExampleControlsNoTouching" class="carousel slide" data-bs-touch="false" data-bs-interval="false">
Expand Down

0 comments on commit d1a62b4

Please sign in to comment.