fix: Update message display and toolbar behavior in WebEngineView.qml…#328
Merged
deepin-bot[bot] merged 1 commit intolinuxdeepin:develop/snipefrom Jan 6, 2026
Conversation
… and index.js - Changed the message display to show on the rootItem instead of webView to prevent display issues during scrolling. - Added functionality to hide the floating toolbar when the menu is closed, enhancing user interface responsiveness. - Updated the showRightMenu function to use viewport coordinates, improving the accuracy of toolbar positioning. These changes improve the overall user experience by ensuring consistent message visibility and toolbar behavior. bug:https://pms.uniontech.com/bug-view-342199.html
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: dengzhongyuan365-dev The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
deepin pr auto review我来对这段代码变更进行详细分析:
WebEngineView.qml变更: onClosed: {
// 菜单关闭时隐藏悬浮工具栏
Webobj.callJsHideEditToolbar();
}优点:
建议改进:
onClosed: {
try {
Webobj.callJsHideEditToolbar();
} catch(e) {
console.error("Failed to hide edit toolbar:", e);
}
}index.js变更: // 显示工具栏(传入视口坐标,rightUpdate 内部会添加滚动偏移)
showRightMenu(toolbarX, toolbarY);优点:
潜在问题:
建议改进: // 显示工具栏(传入视口坐标)
showRightMenu(toolbarX, toolbarY);
这些变更总体上是合理的,但建议实施上述改进措施以提高代码的健壮性。 |
lzwind
approved these changes
Jan 6, 2026
Author
|
/forcemerge |
Contributor
|
This pr force merged! (status: unstable) |
b70dc01
into
linuxdeepin:develop/snipe
15 of 17 checks passed
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.
… and index.js
These changes improve the overall user experience by ensuring consistent message visibility and toolbar behavior.
bug:https://pms.uniontech.com/bug-view-342199.html