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

Flickable can't scroll horizonally with Alt + mouse wheel in WebAssembly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 6.8.0
    • None
    • Firefox 131.0.2, Brave 1.69.168 (Chromium 128)
    • WebAssembly

    Description

      Run this code natively on desktop first and confirm that you can scroll horizontally by holding down Alt key and using mouse wheel. Then run the same code in WebAssembly:

       

      import QtQuick
      import QtQuick.Window
      import QtQuick.Layouts
      import QtQuick.Controls
      
      ApplicationWindow {
          id: root
      
          height: 480
          visible: true
          width: 640
      
          Flickable {
              anchors.fill: parent
              contentWidth: grid.width
              contentHeight: grid.height
              clip: true
              GridLayout {
                  id: grid
                  columns: 32
      
                  Repeater {
                      model: 32 * 32
                      Rectangle {
                          required property int index
                          color: Qt.rgba(Math.random(), Math.random(), Math.random(), 1)
                          width: 100
                          height: 100
                          Text {
                              text: parent.index
                              font.pixelSize: 20
                          }
                      }
                  }
              }
          }
      }

      Note that browsers use Shift + mouse wheel for horizontally scrolling, and Firefox already took the Alt + mouse wheel for back/forward.

      Attachments

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

        Activity

          People

            lopotter-ext Lorn Potter
            jirauser69920 user-6dbf8 (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes