Skip to content

Commit

Permalink
map example: don't restrict pinch-zoom to center
Browse files Browse the repository at this point in the history
A big advantage of PinchHandler over PinchArea is the ability to zoom
into a particular location in the target Item, so let's not fail to
show that off.

Pick-to: 6.2 6.4 6.5
Change-Id: I0f22abff99bdc60bac27e72fd5f66be4796794df
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
  • Loading branch information
ec1oud committed Jan 2, 2023
1 parent 344f09b commit e39b457
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions examples/quick/pointerhandlers/map.qml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ Item {
target: map
minimumScale: 0.1
maximumScale: 10
xAxis.enabled: false
yAxis.enabled: false
onActiveChanged: if (!active) reRenderIfNecessary()
grabPermissions: PinchHandler.TakeOverForbidden // don't allow takeover if pinch has started
}
Expand Down

0 comments on commit e39b457

Please sign in to comment.