Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-76379

PinchHandler should have a way to reset

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 5.12.3
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      All

      Description

      Consider the following scenario: we have an object that needs to scale, and we're using a PinchHandler for that. There is also another way for the object view to set the zoom, perhaps because of a reset button or the user selecting an object from a list to focus on. So now, the PinchHandler's scale property is no longer in sync with that of the view. We could use activeScale instead, but that value resets with each time we pinch, and so either requires manually storing the old value somewhere when the gesture ends. 

      It would be great PinchHandler would gain a way to reset the current state to neutral.

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              andre André Somers
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes