Public bug reported: I just compared the two API documents:
https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Components.ViewItems/ it uses the code: ViewItems.onDragUpdated: { if (event.direction == ListItemDrag.Dropped) { // this is the last event, so drop the item model.move(event.from, event.to, 1); } else if (event.direction != ListItemDrag.Started) { // do not accept the moving events, so drag.from will // always contain the original drag index event.accept = false; } } It has the "event.direction" there, but in the API document: https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Components.ListItemDrag/ It does not have the "direction" property defined there. Is this a bug? Shall it be "event.status" instead? Thanks & best regards, XiaoGuo ** Affects: ubuntu-ui-toolkit (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in Ubuntu. https://bugs.launchpad.net/bugs/1562667 Title: ListItemDrag.direction is not defined in the API document Status in ubuntu-ui-toolkit package in Ubuntu: New Bug description: I just compared the two API documents: https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Components.ViewItems/ it uses the code: ViewItems.onDragUpdated: { if (event.direction == ListItemDrag.Dropped) { // this is the last event, so drop the item model.move(event.from, event.to, 1); } else if (event.direction != ListItemDrag.Started) { // do not accept the moving events, so drag.from will // always contain the original drag index event.accept = false; } } It has the "event.direction" there, but in the API document: https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Components.ListItemDrag/ It does not have the "direction" property defined there. Is this a bug? Shall it be "event.status" instead? Thanks & best regards, XiaoGuo To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1562667/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp