Developer Notes

Buttons capture the mouse by default, that means that no input events are traveling to other widgets, including the viewport which forwards mouse information to the player, which is what PlayerController.MousePosition is reflecting.
The only way to avoid this is to not use a widget that captures the mouse, which would for button mean changing the click behavior to be precise click, or on down...etc. Conditions that wouldn't require capturing the mouse for multiple frames.

Description

If the user clicks a button and does not release the mouse button, the mouse position will no longer update until the user releases the mouse button that is being held down. This could cause issues with custom mice in UMG.

Steps to Reproduce
  1. Open attached project
  2. Click play
  3. Click and hold on the button (farthest widget to the right)
  4. While still holding down the mouse move the mouse around
  5. Notice that the little white image is no longer following the mouse
  6. Let go of the mouse button and notice the image is now following the mouse again

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

1
Login to Vote

Won't Fix
ComponentUE - Editor - UI Systems
Affects Versions4.6.14.7
Target Fix4.8
CreatedJan 19, 2015
ResolvedJan 20, 2015
UpdatedApr 27, 2018
View Jira Issue