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

PinchHandler.minimum/maximumScale properties aren't enforced with native gestures

    XMLWordPrintable

Details

    • 5cb3ba93da (qt/qtdeclarative/dev) 33eb0fc79d (qt/qtdeclarative/6.3) 9e2705e027 (qt/qtdeclarative/6.4) 33eb0fc79d (qt/tqtc-qtdeclarative/6.3) 9e2705e027 (qt/tqtc-qtdeclarative/6.4) 3e698f7c9f (qt/tqtc-qtdeclarative/6.2)

    Description

      In QQuickPinchHandler::handlePointerEventImpl(), we have this in the else block for when the event is not a native gesture:

              m_activeScale = qBound(m_minimumScale/m_startScale, m_activeScale, m_maximumScale/m_startScale);
      

      but no similar use of those min/max values when it's a native gesture. So you can scale things infinitely with a touchpad that sends those events, regardless of limits.

      Attachments

        Issue Links

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

          Activity

            People

              srutledg Shawn Rutledge
              srutledg Shawn Rutledge
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews