Description

Widget events for On Mouse Enter, On Mouse Leave, OnHovered, and OnUnhovered don't trigger if the left or right mouse button is held down when the mouse passes over the widget.

Steps to Reproduce
  1. Open UE4 Editor (any project)
  2. Add Widget Blueprint (OverlapWidget)
  3. In Designer tab, add a Button
  4. In the Graph tab, wire Event On Mouse Leave to a Print String node
  5. In the level blueprint, add Event Begin Play and Get Player Controller nodes
  6. From Player Controller node's return value, add Set Show Mouse Cursor node (set to true)
  7. Wire Begin Play into Set node
  8. Wire Set into Create Widget node
  9. on Create Widget node, set class to OverlapWidget
  10. From Return value pin, create Add To Viewport node
  11. PIE

Result:
Passing over the button with the mouse held does not print the value from the Print String node.

Expected:
When the mouse passes over the button with the mouse held the Print String node prints as expected

Have Comments or More Details?

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

4
Login to Vote

By Design
ComponentUE - Editor - UI Systems
Affects Versions4.13
CreatedSep 7, 2016
ResolvedSep 15, 2016
UpdatedMay 2, 2018