Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: moveTo not invoked when position changed #88

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Decodetalkers
Copy link
Contributor

@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Decodetalkers

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Comment on lines 50 to 53
onPositionChanged: function(drag) {
taskmanager.Applet.dataModel.moveTo(drag.source.itemId, visualIndex)
}

Copy link
Contributor

Choose a reason for hiding this comment

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

这不是在拖拽结束之前就开始移动数据里面的东西了吗?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

因为到外面就没有dorp事件了,然后enter时候就做了个move,所以就想这么处理先

Copy link
Contributor

Choose a reason for hiding this comment

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

enter时候只是move了delegate model,并没有move原始的model,你自己测试过吗,因为move之后会发送信号,会导致delegate model也发生变化,不知道会不会出什么问题,如果没有出问题,其实也可以在enter的时候就直接move原始model,这里在drop的时候move就是为了避免两个model同时发生变化。

@deepin-bot
Copy link

deepin-bot bot commented Apr 1, 2024

TAG Bot

New tag: 0.0.6
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #113

@deepin-bot
Copy link

deepin-bot bot commented Apr 10, 2024

TAG Bot

New tag: 0.0.7
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #136

@deepin-bot
Copy link

deepin-bot bot commented Apr 17, 2024

TAG Bot

New tag: 0.0.8
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #183

@deepin-bot
Copy link

deepin-bot bot commented Apr 18, 2024

TAG Bot

New tag: 0.0.9
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #211

@deepin-bot
Copy link

deepin-bot bot commented Apr 23, 2024

TAG Bot

New tag: 0.0.10
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #224

@deepin-bot
Copy link

deepin-bot bot commented Apr 23, 2024

TAG Bot

New tag: 0.0.11
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #248

@deepin-bot
Copy link

deepin-bot bot commented Apr 25, 2024

TAG Bot

New tag: 0.0.12
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #258

@deepin-bot
Copy link

deepin-bot bot commented Apr 26, 2024

TAG Bot

New tag: 0.0.13
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #275

@deepin-bot
Copy link

deepin-bot bot commented Apr 29, 2024

TAG Bot

New tag: 0.0.14
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #297

@deepin-bot
Copy link

deepin-bot bot commented Apr 30, 2024

TAG Bot

New tag: 0.0.15
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #310

@deepin-bot
Copy link

deepin-bot bot commented May 7, 2024

TAG Bot

New tag: 0.0.16
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #323

@deepin-bot
Copy link

deepin-bot bot commented May 10, 2024

TAG Bot

New tag: 0.0.17
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #332

@deepin-bot
Copy link

deepin-bot bot commented May 13, 2024

TAG Bot

New tag: 0.0.18
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #347

@deepin-bot
Copy link

deepin-bot bot commented May 13, 2024

TAG Bot

New tag: 0.0.19
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #350

@deepin-bot
Copy link

deepin-bot bot commented May 14, 2024

TAG Bot

New tag: 0.0.20
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #353

@deepin-bot
Copy link

deepin-bot bot commented May 14, 2024

TAG Bot

New tag: 0.0.21
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #357

@deepin-bot
Copy link

deepin-bot bot commented May 14, 2024

TAG Bot

New tag: 0.0.22
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #359

@deepin-bot
Copy link

deepin-bot bot commented May 15, 2024

TAG Bot

New tag: 0.0.23
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #360

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.

None yet

3 participants