Bug 456579 - MultiPointTouchArea doesn't work if placed inside a Kirigami.Page
Summary: MultiPointTouchArea doesn't work if placed inside a Kirigami.Page
Status: REPORTED
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.94.0
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: Not decided
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-11 08:44 UTC by tubbadu
Modified: 2022-07-11 08:48 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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