Public bug reported: https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Components.ViewItems/
ViewItems.onDragUpdated: { if (event.status == ListViewDrag.Started) { if (event.from < 5) { // deny dragging on the first 5 element event.accept = false; In the above code, the correct should be: ViewItems.onDragUpdated: { if (event.status == ListItemDrag.Started) { if (event.from < 5) { // deny dragging on the first 5 element event.accept = false; } else if (event.from >= 5 && event.from <= 10 && Best regards, XiaoGuo ** Affects: ubuntu-ui-toolkit (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu. https://bugs.launchpad.net/bugs/1561948 Title: ListViewDrag should be ListItemDrag in the API doc Status in ubuntu-ui-toolkit package in Ubuntu: New Bug description: https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Components.ViewItems/ ViewItems.onDragUpdated: { if (event.status == ListViewDrag.Started) { if (event.from < 5) { // deny dragging on the first 5 element event.accept = false; In the above code, the correct should be: ViewItems.onDragUpdated: { if (event.status == ListItemDrag.Started) { if (event.from < 5) { // deny dragging on the first 5 element event.accept = false; } else if (event.from >= 5 && event.from <= 10 && Best regards, XiaoGuo To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1561948/+subscriptions -- Mailing list: https://launchpad.net/~ubuntu-sdk-bugs Post to : ubuntu-sdk-bugs@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-sdk-bugs More help : https://help.launchpad.net/ListHelp