Conversation
Contributor
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[201_84] 默认关闭矩阵等数学环境的格线拖拽
如何测试
matrix、bmatrix、Bmatrix、det、choice、stack等数学环境,格线应该不支持拖拽align、eqnarray、gather、multline、alignat、flalign等数学环境,格线也应该不支持拖拽2026/2/13
What
在诸多以表格为底层数据模型的数学环境下,很多组件在编辑时,格线不应支持拖拽
How
edit_interface_rep::is_true_table中,增加对诸多数学环境的判断edit_mouse::table_line_hit中,增加对is_true_table的判断,以保障鼠标悬浮的变形和拖动被table_line_hit时禁用