Skip to content
  • Morten Johan Sørvig's avatar
    Improve Mac OS X touch event enabling. · 2833556a
    Morten Johan Sørvig authored
    
    
    Previously, the Qt Quick touch interaction items would
    enable touch events on window change. On app startup
    this would typically happen before the platform window
    was created, and the call to registerTouchWindow would
    then create the platform window.
    
    registerTouchWindow in QtBase has now been changed
    to not create the platform window since this has
    unwanted side effects. Calling it at window change
    time will then have no effect for the initial window
    change.
    
    Enable and disable touch events on hoverEnter/Leave
    instead. This is similar to what QtWidgets does and
    has an additional benefit: touch events can now be
    enabled when the mouse cursor is hovering over a touch
    item, reducing the chances of it interfering with
    scroll events for other items.
    
    Task-number: QTBUG-32988
    Change-Id: Ic48dbec910f52299d5068f5ca7508be73cdc6f36
    Reviewed-by: default avatarShawn Rutledge <shawn.rutledge@digia.com>
    2833556a