nuxt / nuxt/ui

Drawer not closing by drag on mobile

Open
#5,550 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

upstream/reka-ui v5
Dominant language
TypeScript
Stars
6.9k
Forks
1.1k
Avg merge
1d 7h
Merged PRs (30d)
57

Description

Environment
  • Operating System: Linux
  • Node Version: v20.19.1
  • Nuxt Version: 4.2.1
  • CLI Version: 3.30.0
  • Nitro Version: 2.12.9
  • Package Manager: pnpm@10.6.5
  • Builder: -
  • User Config: compatibilityDate, devtools, ssr, modules, css, routeRules, supabase, runtimeConfig, vite
  • Runtime Modules: @nuxt/eslint@1.11.0, @nuxt/hints@1.0.0-alpha.2, @nuxt/image@2.0.0, @nuxt/ui@4.2.1, @nuxt/scripts@0.13.0, @nuxtjs/supabase@2.0.1
  • Build Modules: -
Is this bug related to Nuxt or Vue?

Nuxt

Package

v4.x

Version

v4.2.1

Reproduction

no reproduction

Description

Drawer not closing properly by dragging on mobile devices. On desktop devices it works fine. You could check it by opening drawers documentation in mobile view and try to open/close first and second examples. First one using template slot #content for placeholder and it closing by dragging by content and by handle. Second example using template slot #body and drawer snaps to bottom if you try to drag by content but works on handle. All examples works fine in Firefox but not in Chrome / Chromium.

Additional context

No response

Logs

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the drawers documentation and compare the first and second examples in Chrome or Chromium mobile view. Check the drag behavior for the content and handle slots; done when both examples open and close by dragging without snapping incorrectly, while preserving the behavior that already works in Firefox.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.