vercel · GitHub

Issue number: resolves #30290


What is the current behavior?

The segment view swipe gesture can only be disabled by adding the disabled property and setting opacity: 1.

What is the new behavior?

  • Adds a new property, swipeGesture, to disable swiping on the segment view
  • Adds an e2e test which verifies the styles blocking the swipe are correctly applied when swipeGesture is false
    • I tried to simulate touch/scroll gestures, but Playwright/browser limitations with scroll-snap make it impossible to reliably test swipe disabling.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Dev build: 8.7.17-dev.11770405784.157a3c10

Segment View Preview

Read the original on github.com ↗