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

horizontal and vertical velocities reported by "Flickable" element on "onFlickStarted" signal shows zeros randomly

    XMLWordPrintable

Details

    • a2d97672bfaace677a4308db93f5802ba53af46e, 6fb7cdf8741ca924413dd7cbc09fad91ddc04823, 343069c7843321b33f06bfd42d476abae76dcece, 927b22b06ee2e749395e73f457fe3c16ea087864, 8fbb802fa50d0a01c9c01d007a3e016c45fa863c

    Description

      Hi,

      we observed that "horizontalVelocity" and "verticalVelocity" properties of "Flickable" element are showing zeroes randomly when we tried flicking vertically or horizontally. We are retrieving these values in the "onFlickStarted" signal. Please see our observations below:

      <----- Diagonal Flick - slow ----->

      [Qt Message] Flickable::OnMovementStarted
      [Qt Message] Flickable::OnFlickStarted HV = -492.0335388183594 VV = -1441.8021240234375
      [Qt Message] Flickable::OnFlickEnded
      [Qt Message] Flickable::OnMovementEnded
      [Qt Message] Flickable::OnMovementStarted
      [Qt Message] Flickable::OnFlickStarted HV = 713.8405151367188 VV = 2048.966796875
      [Qt Message] Flickable::OnFlickEnded
      [Qt Message] Flickable::OnMovementEnded
      [Qt Message] Flickable::OnMovementStarted
      [Qt Message] Flickable::OnFlickStarted HV = -578.655029296875 VV = -1312.8419189453125
      [Qt Message] Flickable::OnFlickEnded
      [Qt Message] Flickable::OnMovementEnded
      [Qt Message] Flickable::OnMovementStarted
      [Qt Message] Flickable::OnFlickStarted HV = 807.0980834960938 VV = 2731.31201171875
      [Qt Message] Flickable::OnFlickEnded
      [Qt Message] Flickable::OnMovementEnded
      [Qt Message] Flickable::OnMovementStarted

      <----- Diagonal Flick - fast ----->

      [Qt Message] Flickable::OnFlickStarted HV = -548.20751953125 VV = -1455.5909423828125
      [Qt Message] Flickable::OnFlickStarted HV = 671.7813720703125 VV = 1894.5335693359375
      [Qt Message] Flickable::OnFlickStarted HV = -541.0653686523438 VV = -1425.376708984375
      [Qt Message] Flickable::OnFlickStarted HV = 609.2376708984375 VV = 1966.7916259765625
      [Qt Message] Flickable::OnFlickStarted HV = -579.7516479492188 VV = -1807.098876953125
      [Qt Message] Flickable::OnFlickStarted HV = 480.9149475097656 VV = 1458.7200927734375
      [Qt Message] Flickable::OnFlickStarted HV = -554.8447265625 VV = -1702.055908203125
      [Qt Message] Flickable::OnFlickStarted HV = 426.03851318359375 VV = 1297.8974609375
      [Qt Message] Flickable::OnFlickStarted HV = -483.81268310546875 VV = -1758.43603515625
      [Qt Message] Flickable::OnFlickStarted HV = 644.253173828125 VV = 1907.2064208984375
      [Qt Message] Flickable::OnFlickStarted HV = -407.8543395996094 VV = -1296.8453369140625
      [Qt Message] Flickable::OnFlickStarted HV = 498.42022705078125 VV = 1681.056640625
      [Qt Message] Flickable::OnFlickStarted HV = -581.5980834960938 VV = -1939.7371826171875
      [Qt Message] Flickable::OnFlickStarted HV = 656.2044677734375 VV = 1917.2503662109375
      [Qt Message] Flickable::OnFlickEnded
      [Qt Message] Flickable::OnMovementEnded

      <----- Horizontal Flick - slow ----->

      [Qt Message] Flickable::OnMovementStarted
      [Qt Message] Flickable::OnFlickStarted HV = -1280.90234375 VV = 0
      [Qt Message] Flickable::OnFlickEnded
      [Qt Message] Flickable::OnMovementEnded
      [Qt Message] Flickable::OnMovementStarted
      [Qt Message] Flickable::OnFlickStarted HV = 735.61279296875 VV = 0
      [Qt Message] Flickable::OnFlickEnded
      [Qt Message] Flickable::OnMovementEnded
      [Qt Message] Flickable::OnMovementStarted
      [Qt Message] Flickable::OnFlickStarted HV = -1596.8741455078125 VV = 15.000000953674316
      [Qt Message] Flickable::OnFlickEnded
      [Qt Message] Flickable::OnMovementEnded
      [Qt Message] Flickable::OnMovementStarted
      [Qt Message] Flickable::OnFlickStarted HV = 1142.3336181640625 VV = 0
      [Qt Message] Flickable::OnFlickEnded
      [Qt Message] Flickable::OnMovementEnded
      [Qt Message] Flickable::OnMovementStarted
      [Qt Message] Flickable::OnFlickStarted HV = -1274.14013671875 VV = 0
      [Qt Message] Flickable::OnFlickEnded
      [Qt Message] Flickable::OnMovementEnded
      [Qt Message] Flickable::OnMovementStarted

      <----- Horizontal Flick - fast ----->

      [Qt Message] Flickable::OnFlickStarted HV = 1766.0648193359375 VV = 0
      [Qt Message] Flickable::OnFlickStarted HV = -1273.9300537109375 VV = 0
      [Qt Message] Flickable::OnFlickStarted HV = 0 VV = 0
      [Qt Message] Flickable::OnFlickStarted HV = -1824.17578125 VV = -88.98284149169922
      [Qt Message] Flickable::OnFlickStarted HV = 1940.48291015625 VV = 259.2586364746094
      [Qt Message] Flickable::OnFlickStarted HV = 0 VV = 0
      [Qt Message] Flickable::OnFlickStarted HV = 1372.64111328125 VV = 31.598310470581055
      [Qt Message] Flickable::OnFlickStarted HV = -2121.6083984375 VV = -265.1170959472656
      [Qt Message] Flickable::OnFlickStarted HV = 1602.3798828125 VV = 134.91824340820312
      [Qt Message] Flickable::OnFlickStarted HV = -2247.32421875 VV = -260.75091552734375
      [Qt Message] Flickable::OnFlickStarted HV = 2115.728515625 VV = 168.81591796875
      [Qt Message] Flickable::OnFlickStarted HV = -936.6050415039062 VV = -132.18408203125
      [Qt Message] Flickable::OnFlickStarted HV = 1368.392822265625 VV = 140.07118225097656
      [Qt Message] Flickable::OnFlickStarted HV = -759.517822265625 VV = -40.936187744140625
      [Qt Message] Flickable::OnFlickStarted HV = 0 VV = 0
      [Qt Message] Flickable::OnFlickStarted HV = -1239.523681640625 VV = 0
      [Qt Message] Flickable::OnFlickStarted HV = 1652.477294921875 VV = 0
      [Qt Message] Flickable::OnFlickStarted HV = 0 VV = 0
      [Qt Message] Flickable::OnFlickStarted HV = 1768.6339111328125 VV = 0
      [Qt Message] Flickable::OnFlickStarted HV = -1561.751708984375 VV = 0
      [Qt Message] Flickable::OnFlickStarted HV = 1697.618896484375 VV = 0
      [Qt Message] Flickable::OnFlickStarted HV = 0 VV = 0
      [Qt Message] Flickable::OnFlickEnded
      [Qt Message] Flickable::OnMovementEnded

      <----- Vertical Flick - slow ----->

      [Qt Message] Flickable::OnMovementStarted
      [Qt Message] Flickable::OnFlickStarted HV = 0 VV = 3107.125732421875
      [Qt Message] Flickable::OnFlickEnded
      [Qt Message] Flickable::OnMovementEnded
      [Qt Message] Flickable::OnMovementStarted
      [Qt Message] Flickable::OnFlickStarted HV = 0 VV = -2519.596923828125
      [Qt Message] Flickable::OnFlickEnded
      [Qt Message] Flickable::OnMovementEnded
      [Qt Message] Flickable::OnMovementStarted
      [Qt Message] Flickable::OnFlickStarted HV = 54.14236831665039 VV = 3893.02294921875
      [Qt Message] Flickable::OnFlickEnded
      [Qt Message] Flickable::OnMovementEnded
      [Qt Message] Flickable::OnMovementStarted

      <----- Vertical Flick - fast ----->

      [Qt Message] Flickable::OnFlickStarted HV = 0 VV = -2456.205810546875
      [Qt Message] Flickable::OnFlickStarted HV = 0 VV = 1993.3138427734375
      [Qt Message] Flickable::OnFlickStarted HV = 0 VV = 0
      [Qt Message] Flickable::OnFlickStarted HV = 0 VV = 1630.6094970703125
      [Qt Message] Flickable::OnFlickStarted HV = 0 VV = -2153.038330078125
      [Qt Message] Flickable::OnFlickStarted HV = 0 VV = 0
      [Qt Message] Flickable::OnFlickStarted HV = 31.78826141357422 VV = -2429.73486328125
      [Qt Message] Flickable::OnFlickStarted HV = 0 VV = 0
      [Qt Message] Flickable::OnFlickStarted HV = -22.53003692626953 VV = -1830.3897705078125
      [Qt Message] Flickable::OnFlickStarted HV = 0 VV = 1841.1737060546875
      [Qt Message] Flickable::OnFlickStarted HV = 11.732383728027344 VV = -2515.163818359375
      [Qt Message] Flickable::OnFlickStarted HV = 0 VV = 2140.29833984375
      [Qt Message] Flickable::OnFlickStarted HV = 11.44183349609375 VV = -2493.218994140625
      [Qt Message] Flickable::OnFlickStarted HV = 0 VV = 0
      [Qt Message] Flickable::OnFlickStarted HV = 96.63113403320312 VV = -1889.2750244140625
      [Qt Message] Flickable::OnFlickStarted HV = 0 VV = 1727.249267578125
      [Qt Message] Flickable::OnFlickStarted HV = 0 VV = -2953.87353515625
      [Qt Message] Flickable::OnFlickStarted HV = -16.200000762939453 VV = 2916.1533203125
      [Qt Message] Flickable::OnFlickEnded
      [Qt Message] Flickable::OnMovementEnded

      So, diagonal flick is always showing proper values in slow and fast modes, but the problem is visible with horizontal and vertical flicks, when flicked quickly. Randomly both velocities were showing zeroes, which is not correct. I assume this could be a bug in the Flickable element. Can you please verify this issue? For your convenience, i am attaching the relevant QML file (main.zip file) with this bug.

      Please let me know if you need more information on this issue.

      Thanks & Regards,
      BalaSubrahmanyam Varanasi

      Attachments

        1. flickvelocity.diff
          7 kB
        2. main.zip
          0.4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            martjone Martin Jones (closed Nokia identity) (Inactive)
            baluvaranasi BalaSubrahmanyam Varanasi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes