設定ウィンドウからデスクトップの順序を変更する (Add desktop reordering via drag-and-drop in settings window)#144
Conversation
Co-authored-by: Freeesia <9002657+Freeesia@users.noreply.github.com>
Co-authored-by: Freeesia <9002657+Freeesia@users.noreply.github.com>
|
@copilot |
Co-authored-by: Freeesia <9002657+Freeesia@users.noreply.github.com>
|
@copilot |
Co-authored-by: Freeesia <9002657+Freeesia@users.noreply.github.com>
|
@copilot |
…" protection Co-authored-by: Freeesia <9002657+Freeesia@users.noreply.github.com>
GongSolutions.WPF.DragDropライブラリを使用するように実装を変更しました。(6b48851) 実装内容:
「全デスクトップ」アイテムはドラッグ不可、かつドロップターゲットとしても使用できないようになっています。 |
|
@copilot |
Co-authored-by: Freeesia <9002657+Freeesia@users.noreply.github.com>
下方向への移動時のインデックス計算バグを修正しました。(55dcadd) 問題の原因: 修正内容:
これで上下どちらの方向でも正しい位置に移動するようになりました。 |
Summary of Changes
Fixed a bug where moving desktop items downward in the list would place them at incorrect positions.
Issue:
When dragging an item down in the list, the
InsertIndexprovided by GongSolutions.WPF.DragDrop reflects the position in the current list state (before removal). After the source item is removed, all indices below it shift up by 1, causing the target index to be off by one position.Fix:
Updated the
Dropmethod inDesktopListDragDropHandler.csto:Result:
Original prompt
Fixes #143
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.