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

Wheel scrolling issues in WebEngine

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6.0
    • WebEngine
    • None
    • macOS

    Description

      When viewing some WebGL applications via QtWebEngine, I am noticing that two-finger scrolling with the trackpad can be a bit erratic and does not follow fast motions well at all. I set up the following minimal example:

       

       #include <iostream>
      
      #include <QApplication>
      #include <QWebEnginePage>
      #include <QWebEngineView>
      
      int main(int argc, char *argv[]) {
      
          QApplication app(argc, argv);
      
          QWebEnginePage *page = new QWebEnginePage;
          QWebEngineView *web = new QWebEngineView;
          web->setPage(page);
          web->setUrl(QUrl("https://fractalglider.github.io/fun/2018/02/13/testing-mouse-scroll-wheel.html"));
          web->show();
      
          return app.exec();
      
      }
      
      

      If I open this webpage in e.g. Safari and make a smooth oscillating motion with the trackpad with several oscillations a second (roughly 3), I get a smooth graph (attached). If I do the same with the above, the curve is quite noisy and completely fails to keep up at times. Even when moving slowly, the motions are a bit erratic at times in QtWebEngine.

      Attachments

        1. scroll-qt.jpg
          scroll-qt.jpg
          24 kB
        2. scroll-safari.jpg
          scroll-safari.jpg
          50 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt_webengine_team Qt WebEngine Team
            trobitaille trobitaille
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes