nex_shift/docs
mula.liu 85de468bc3 fix(drop): 拒绝改由光标表达,不再往按钮上叠禁止图标
按钮处理不了这次拖拽时保持 disable,鼠标光标换成禁止符号;能服务的光标仍是
AppKit 画的「+文件」。页面上那一层 .drop-ban 叠加层删掉了。

macOS 上外部文件走原生拖放通道,而 wry 的 draggingEntered:/draggingUpdated:
固定回报 NSDragOperation::Copy,页面改不动那条通道的光标。新增
src-tauri/src/drop_cursor.rs:页面把判定用 set_drop_refusal 交下来,原生侧在
运行时替换 wry 私有类的这两条方法(类名带 crate 版本,按前缀扫描),把 Copy
收窄成 NSDragOperationNone。两次都先调用 wry 自己的实现再改返回值——那次调用
正是 over/dragover 的投递入口,拒绝时提前 return 会让页面再也收不到指针移动,
一次拒绝就粘到整段手势结束。回报 None 时既没有 performDragOperation: 也没有
draggingExited:,所以拒绝期间盯一次鼠标松开,用 drop://cancelled 收起面板状态。
Windows 不需要这套:OLE 的回报跟随页面设置的 dropEffect。

实测:PDF 从「最近使用」和从访达分别拖到「文字识别」,两处都是按钮禁用+光标
禁止、无 hover、松手静默;中途拖到能服务的按钮立刻恢复并正常弹出圆环。
2026-11-07 12:43:06 +08:00
..
ARCHITECTURE.md docs: 收录 2026-11 全面评审的修复与约束 2026-11-07 12:42:35 +08:00
BUILD_WINDOWS.md release: prepare Shift 0.1.8 2026-10-27 18:45:32 +08:00
ENGINEERING-NOTES.md fix(drop): 拒绝改由光标表达,不再往按钮上叠禁止图标 2026-11-07 12:43:06 +08:00
MOBILE.md docs: 收录 2026-11 全面评审的修复与约束 2026-11-07 12:42:35 +08:00
README.md docs: 收录 2026-11 全面评审的修复与约束 2026-11-07 12:42:35 +08:00
RELEASE.md docs: 收录 2026-11 全面评审的修复与约束 2026-11-07 12:42:35 +08:00
ROADMAP.md docs: 收录 2026-11 全面评审的修复与约束 2026-11-07 12:42:35 +08:00
SECURITY.md docs: 收录 2026-11 全面评审的修复与约束 2026-11-07 12:42:35 +08:00
SPECIFICATION.md docs: 收录 2026-11 全面评审的修复与约束 2026-11-07 12:42:35 +08:00

README.md

Shift documentation

Start with the user guide, then choose the engineering document that matches the work.

Document Audience Contents
../README.md / ../README.zh-CN.md Users Features, formats, shortcuts, privacy, known limitations
ARCHITECTURE.md Contributors Process/window model, module ownership, events, data flows
SPECIFICATION.md Product and QA Observable behaviour, naming, limits, acceptance criteria
SECURITY.md Security reviewers and maintainers Trust boundaries, update and LAN risk, residual gaps
ENGINEERING-NOTES.md Contributors Regression ledger and non-negotiable implementation constraints
RELEASE.md Release maintainers Channel layout, signing, update handoff and verification
BUILD_WINDOWS.md Builders Windows prerequisites, cross-build and installer notes
ROADMAP.md Contributors Completed milestones and next desktop work
MOBILE.md Product planning Mobile feasibility and architecture plan
../CONTRIBUTING.md Contributors Setup, checks, change rules and manual matrix

Source of truth

  • Current code and tests define implemented behavior.
  • The conversion/tool tables in README describe the user-visible catalogue; the runtime catalogue lives in src/lib/conversionFormats.ts and src/lib/radialOrder.ts.
  • Platform/runtime limitations must be stated as unverified when no real hardware run exists.
  • Do not claim a CI run without linking its log.