Skip to content

Mouse-wheel-scroll is not working when "Scroll inactive windows when hovering over them" enabled #10480

@lbdalmendrayMyradar

Description

@lbdalmendrayMyradar

Describe the bug

Hi,
The mouse-wheel-scroll is not working when "Scroll inactive windows when hovering over them" is disabled on any new simple active WinUI 3 Desktop app. But other type of apps like WPF are working correctly. Please watch this attached video. Thanks 😄.

2025-03-31_10-41-47.mp4

Steps to reproduce the bug

  1. Create a new Blank App, Packaged [WinUI 3 in Desktop] (Microsoft.WindowsAppSDK 1.7.250310001) from Visual Studio 2022 Version 17.13.5. (You can skip steps from 1-3 if you unzip and use the attached MouseWheelScroll.zip)
  2. Add a ListView in the MainWindow.xaml
  3. Populate the ListView with at least 100 items. (You can do it by code or adding in the ListView.
  4. Run the app.
  5. Search for "Settings" on Windows 11 Taskbar's Search.
  6. Goto "Bluetooth & devices"->"Mouse"
  7. Enable the "Scroll inactive windows when hovering over them" toggle button.
  8. Click on the app's window and scroll the ListView. See that is working properly.
  9. Disable the "Scroll inactive windows when hovering over them" toggle button.
  10. Click on the app's window and scroll the ListView. See that is not working.
  11. If you try on another app like a WPF app, you can see it works. You can use the WPF app in the MouseWheelScroll.zip's solution.

MouseWheelScroll.zip

Expected behavior

  • The expected behavior is that the mouse-wheel-scroll could work for each active WinUI 3 app even if the "Scroll inactive windows when hovering over them" is disabled.
  • I would like to know if there is any dev-code solution different from manually enabling the "Scroll inactive windows when hovering over them" option.

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.7.0: 1.7.250310001

Windows version

Windows 11 (23H2): Build 22631

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions