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 Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1562667 Title: ListItemDrag.direction is not defined in the API document To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1562667/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
