InjectTouchInput has offset with WPF applications since Windows 10 April update


  • Since the Windows 10 April update, if you have monitors with different display scalings (say one with 100% and one with 150%), the InjectTouchInput will incorrectly offset to the right the position of presses made on WPF windows. This was not an issue in the Fall's Creators Update. The WPF App is DpiAware but even with the option removed in the manifest, the issue still occurs.

    Note: This happens with any WPF App (like Visual Studio); injecting a touch on the close button in the upper right will end up about 200 pixels to the right.

    Note2: Setting the WPF App's DpiAware property to "true/pm" or DpiAwareness to "PerMonitor" fixes the issue for that specific process but there's still an underlying bug with InjectTouchInput and the April update as other applications such as Visual Studio's main window will exhibit the problem.

    • Edited by Guy Godin Thursday, May 31, 2018 5:33 PM Clarifications
    Thursday, May 31, 2018 3:53 PM