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

Containers with drag "rubber band effect" should react on pointer cancel

    XMLWordPrintable

Details

    • WebAssembly
    • 582237a593421b3e98470a03f29459d02662e9ec (qt/qtbase/5.12) 1444763616 (qt/qtbase/6.4) 1444763616 (qt/tqtc-qtbase/6.4) aee64bbe13 (qt/tqtc-qtbase/dev)

    Description

      What is the benefit? Why is this valuable?

      If you've a container that can be dragged with the mouse , a rubberband effect is visible, where the container contents snaps back when you release the mouse.

      Problem: if you drag the mouse beyond the browser window borders and release the mouse button, the container freezes in the "rubberband mode".

      Expected: if you release the mouse (wherever the pointer is at this time), the container must snap back to it's origin.

      What are common use cases?

      Using drag and drop in WebAssembly apps.

      Technical information

      Reproduce:

      https://github.com/cajus/qt-wasm-bug-pointer

      Compile, load it in the browser. Make sure that the browser window isn't too big, so that there's space below the browser window. Drag the list to make it "rubber band" and move the mouse pointer down, outside the window. Release the mouse button.

      Attachments

        1. wasm-fix-rubberband.patch
          3 kB
        2. qt-should.png
          qt-should.png
          16 kB
        3. qt-is.png
          qt-is.png
          16 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            aleksandr.reviakin Aleksandr Reviakin
            cajus Cajus Pollmeier
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes