Skip to content

[201_84] 默认关闭矩阵等数学环境的格线拖拽#2829

Open
AXeonV wants to merge 3 commits intomainfrom
ty/201_84
Open

[201_84] 默认关闭矩阵等数学环境的格线拖拽#2829
AXeonV wants to merge 3 commits intomainfrom
ty/201_84

Conversation

@AXeonV
Copy link
Contributor

@AXeonV AXeonV commented Feb 13, 2026

[201_84] 默认关闭矩阵等数学环境的格线拖拽

如何测试

  1. 插入任意样式的正常表格(大表格、小表格除外),格线应该可以正常拖拽
  2. 插入matrixbmatrixBmatrixdetchoicestack等数学环境,格线应该不支持拖拽
  3. 插入aligneqnarraygathermultlinealignatflalign等数学环境,格线也应该不支持拖拽

2026/2/13

What

在诸多以表格为底层数据模型的数学环境下,很多组件在编辑时,格线不应支持拖拽

How

  1. edit_interface_rep::is_true_table中,增加对诸多数学环境的判断
  2. edit_mouse::table_line_hit中,增加对is_true_table的判断,以保障鼠标悬浮的变形和拖动被table_line_hit时禁用

Copilot AI review requested due to automatic review settings February 13, 2026 08:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

该 PR 旨在让“以表格为底层模型的数学环境”(如 matrix/align 等)默认不支持格线拖拽,从而避免在编辑这些数学排版结构时出现不符合预期的表格调整交互。

Changes:

  • 扩展 edit_interface_rep::is_true_table:将更多数学环境识别为“非真正表格”,从而统一禁用表格交互能力
  • table_line_hit 中增加 is_true_table 判断,阻断数学环境中的格线命中与拖拽
  • mouse_any 统一改用 table_line_hit 判断悬浮状态,避免绕过上述禁用逻辑
  • 新增开发说明文档 devel/201_84.md

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/Edit/Interface/edit_mouse.cpp 在格线命中/悬浮判断中引入 is_true_table,禁用数学环境下格线拖拽与相关鼠标形态
src/Edit/Interface/edit_interface.cpp 扩展 is_true_table 的数学环境黑名单(matrix/choice/det/stack 等)
devel/201_84.md 补充该需求的测试步骤与实现说明

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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