收紧桌面图片拖拽坐标

桌面壳发送图片拖拽事件前将坐标归一为非负整数

桌面壳配置检查反查拖拽坐标归一和单测边界

共享决策记录补充桌面拖拽坐标边界约定
This commit is contained in:
2026-06-20 15:40:26 +08:00
parent e2433ec02f
commit cf01ba3097
3 changed files with 22 additions and 1 deletions
@@ -2357,6 +2357,9 @@ const requiredRustHostSnippets = [
'__genarrativeDesktopHistoryIndex',
"console.warn('desktop navigation state sync failed', error)",
'file.imageDropped',
'normalize_desktop_drop_position',
'.round().max(0.0) as i32',
'desktop_drop_position_is_rounded_and_clamped_to_window_bounds',
'emit_desktop_image_drop_event(&drop_window, paths, drop_position)',
'app.notification().builder()',
'desktop_entry_url_with_host_context',