Skip to content

Commit 2230135

Browse files
wjyrichdeepin-bot[bot]
authored andcommitted
fix: disable dock panel dragging when locked
1. Added enabled property binding to prevent dock panel dragging when Panel.locked is true 2. This ensures the dock panel cannot be accidentally moved when the panel is locked 3. Maintains existing cursor shape behavior that shows locked state 4. Improves user experience by preventing unintended interactions with locked panels fix: 锁定状态下禁用停靠面板拖动 1. 添加 enabled 属性绑定,当 Panel.locked 为 true 时防止停靠面板拖动 2. 确保面板锁定时不会意外移动停靠面板 3. 保持现有的光标形状行为以显示锁定状态 4. 通过防止与锁定面板的意外交互来改善用户体验 PMS: TASK-383127
1 parent 8dcf20e commit 2230135

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

panels/dock/package/main.qml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,7 @@ Window {
539539
property int averageCount: 5
540540
hoverEnabled: true
541541
propagateComposedEvents: true
542+
enabled: !Panel.locked
542543

543544
cursorShape: {
544545
if (Panel.locked) {

0 commit comments

Comments
 (0)