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

Bad dragHandler position when pinch before

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.10.0
    • None
    • MSVC 2015 (64 bits) / Windows 8.1 / Windows 10

    Description

      When I drag object thanks to PinchHandler (2 fingers minimum) and after I drag object with DragHandler (1 finger only). Object starts to be dragged (DragHandler) in a bad position (PinchHandler drag start position).

      You can visual example above. (Step1 -> Step2 -> Step3 -> Step4 (result) )

      I tried to debug in Qt Source and I found that "onGrabChanged ("qquickdraghandler.cpp")

       function is called when I release one fingers on my object. When this function is called, "initializeTargetStartPos" is called too so  m_targetStartPos is set.

      After, when I start dragging object (one finger only, so it's using DragHandler), m_targetStartPos seems not good to realize translation.

      I hope my above explanations whill help you to solve this problem.

      Attachments

        1. MultiHandlers.zip
          2 kB
        2. Step2.jpg
          Step2.jpg
          55 kB
        3. Step1.jpg
          Step1.jpg
          44 kB
        4. Step3.jpg
          Step3.jpg
          58 kB
        5. Step4.jpg
          Step4.jpg
          52 kB

        Issue Links

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

          Activity

            People

              srutledg Shawn Rutledge
              joffreycousin Joffrey Cousin
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes