Skip to content

移动端概览导航支持长按新增用药 - #18

Open
reece00 wants to merge 1 commit into
TransmtfTeam:mainfrom
reece00:codex/mobile-home-long-press
Open

reece00 wants to merge 1 commit into
TransmtfTeam:mainfrom
reece00:codex/mobile-home-long-press

Conversation

@reece00

@reece00 reece00 commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

修改内容

  • 移动端底部悬浮导航中,“概览”处于激活状态时,长按可打开新增用药界面。
  • 普通点击、未激活状态的页面导航和桌面导航行为保持不变。
  • 手指移动、离开按钮或指针取消时停止长按识别,减少滚动误触。

实现说明

  • src/components/MainLayout.tsx
    • 使用 Pointer Events 记录长按起点和计时状态。
    • 长按 550ms 后复用现有新增用药入口。
    • 移动超过 10px 时取消触发,并在组件卸载时清理计时器。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant