Skip to content

Stop left-menu swipe when scrolling code block/snippet

Eric Eastwood requested to merge 2228-fix-horizontal-code-swiping into develop

Stop left-menu swipe when scrolling code block/snippet

Fix https://gitlab.com/gitlab-org/gitter/webapp/-/issues/2228

Before After

Because code blocks can take over the whole screen, you can still swipe out the left-menu if the code block is at the beginning:

Testing strategy

  1. Enter a code block that has some horizontal scroll on mobile
  2. Scroll the code block over a bit
  3. Then try to scroll back. Notice how the left-menu does not swipe out as well. The left-menu will swipe out if the code block is at the beginning of it's scroll.
Edited by Eric Eastwood

Merge request reports