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

OSX: wheel events are sent with the wrong global position by qnsview.mm

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.0.2
    • 5.0.1
    • None
    • OSX
    • macOS
    • 02a1243dda82a99d8a7ce031245038f9564a6bc0

    Description

      qnsview.mm sends wheel events like so:

      QWindowSystemInterface::handleWheelEvent(m_window, qt_timestamp, qt_windowPoint, qt_windowPoint, pixelDelta, angleDelta,
                                                       [self convertKeyModifiers:[theEvent modifierFlags]]);
      

      Note qt_windowPoint being passed twice – the second time is as the global position, which is obviously wrong. This affect things like scrolling in QGraphicsView.

      The fix is simple. I've attached a patch.

      Attachments

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

        Activity

          People

            sorvig Morten Sørvig
            jfaust Josh Faust
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes