Hi,
I’d like to add a function to scale my level by using multi touch pinching gestures in the level editor.
What’s the best solution to this?
Can you test the multi touch on desktop system somehow? It’s pretty hard to find a good solution when you have to make a new build every time.
I tried this in my Level.qml:
MultiTouchArea {
anchors.fill: parent
multiTouch.minimumScale: 0.25
multiTouch.maximumScale: 1
onPositionChanged: {
//...some other code
}
onScaleChanged: {
level.scale = scale
}
}
But it doesn’t seem to be doing anything?
Furthermore, how can you cancel the onPositionChanged if more than one touch point is registered?
Cheers, Chrisu