I'm trying to use more than 2 points in MultiPointTouchArea

Qt Code:
  1. MultiPointTouchArea {
  2. id: touchArea
  3. anchors.fill: parent
  4. maximumTouchPoints: 5
  5. minimumTouchPoints: 1
  6.  
  7. touchPoints: [
  8. TouchPoint { id: point1 },
  9. TouchPoint { id: point2 },
  10. TouchPoint { id: point3 },
  11. TouchPoint { id: point4 },
  12. TouchPoint { id: point5 }
  13. ]
  14.  
  15. // Workaround for item.contains(point)
  16. function isInsideItem(item, point) {
  17. var hx = item.x + item.width;
  18. var lx = item.x;
  19. var hy = item.y + item.height;
  20. var ly = item.y;
  21.  
  22. if (point.x > lx && point.x < hx && point.y > ly && point.y < hy)
  23. return true;
  24.  
  25. return false;
  26. }
  27.  
  28. onPressed: {
  29. for (var i = 0; i < repeater.count; i++) {
  30. var item = repeater.itemAt(i)
  31. for (var j = 0; j < touchPoints.length; j++) {
  32. var point = touchPoints[j];
  33. if (isInsideItem(item, point)) {
  34. sbuttons.play(i+1)
  35. item.color = "red";
  36. }
  37. }
  38. }
  39. }
  40. onReleased: {
  41. for (var i = 0; i < repeater.count; i++) {
  42. var item = repeater.itemAt(i)
  43. for (var j = 0; j < touchPoints.length; j++) {
  44. var point = touchPoints[j];
  45. if (isInsideItem(item, point)) {
  46. sbuttons.stop(i+1)
  47. item.color = "white";
  48. }
  49. }
  50. }
  51. }
  52. ...
To copy to clipboard, switch view to plain text mode 


But when I'm using more than 2 fingers, I still have two points in touchPoints array. Third finger just does nothing.
What am I doing wrong?