Bug 456579

Summary: MultiPointTouchArea doesn't work if placed inside a Kirigami.Page
Product: [Frameworks and Libraries] frameworks-kirigami Reporter: tubbadu <tubbadu>
Component: generalAssignee: Marco Martin <notmart>
Status: REPORTED ---    
Severity: normal CC: tubbadu
Priority: NOR    
Version First Reported In: 5.94.0   
Target Milestone: Not decided   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description tubbadu 2022-07-11 08:44:44 UTC
SUMMARY
using a [MultiPointTouchArea](https://doc.qt.io/qt-5/qml-qtquick-multipointtoucharea.html) inside a normal QtQuick.Window works well both with a touchscreen and with a mouse, but if it placed as a child of a Kirigami.Page it doesn't work anymore with the touchscreen, while working well with a mouse. The touchscreen gesture is stopped after about half a second.


STEPS TO REPRODUCE
1. use this simple code on a touchscreen:
```
import QtQuick 2.15
import org.kde.kirigami 2.13 as Kirigami

Kirigami.ApplicationWindow {
	id: window
	title: i18nc("@title:window", "Hello World")

	pageStack.initialPage: Kirigami.Page {
		Rectangle{
			color: "red"
			anchors.fill: parent
			Rectangle{
				id: rectangle
				color: "green"
			}
			MultiPointTouchArea{
				anchors.fill: parent
				touchPoints: [
					TouchPoint { id: point1 }
				]
				onUpdated: {
					rectangle.height = point1.y
					rectangle.width = point1.x
				}
			}
		}
	}
}
```
2. try to drag the screen with the mouse and then with the touchscreen

OBSERVED RESULT
with the mouse the green rectangle's size is correctly updated, while with the touchscreen it stops moving after a little amount of time

EXPECTED RESULT
it behaves with the touchscreen as it does with the mouse, without stopping 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 36
KDE Plasma Version: 5.25.2
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Comment 1 tubbadu 2022-07-11 08:48:00 UTC
sorry for the poor code formatting, the same code can be found here: https://pastebin.com/yBkS0R0q