DEV-ios icon indicating copy to clipboard operation
DEV-ios copied to clipboard

Horizontal Scrolling in Code Blocks Interpreted as Back Gesture

Open light-flight opened this issue 7 months ago • 0 comments

Describe the bug

When you scroll a code block to the left, it's interpreted as a swipe left.

To Reproduce

  1. Open any post that contains a code block long enough to require horizontal scrolling.
  2. Swipe right to scroll the code block horizontally, then swipe left.
  3. The "Back" action is triggered.

Expected behavior

The code block should scroll left without changing the page state. There should be no redirect to the posts list.

Screenshots

Image

Smartphone (please complete the following information):

  • Device: iPhone 16 Pro
  • OS: iOS 18.5
  • Version: 2.1.18

light-flight avatar Jun 18 '25 11:06 light-flight