https://bugs.kde.org/show_bug.cgi?id=456579

            Bug ID: 456579
           Summary: MultiPointTouchArea doesn't work if placed inside a
                    Kirigami.Page
           Product: frameworks-kirigami
           Version: 5.94.0
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: notm...@gmail.com
          Reporter: tubb...@gmail.com
  Target Milestone: Not decided

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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to