Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Buttons don't get their OnPointerEnter, OnPointerExit called if the pointer is stationary

Discussion in 'UGUI & TextMesh Pro' started by PorkMuncher, Jan 20, 2015.

  1. PorkMuncher

    PorkMuncher

    Joined:
    Mar 11, 2014
    Posts:
    15
    So in my project you open characters inventory, but for nicer visuals it slides in the screen, not just appears.

    Seems that pointer events are only called when moving the mouse - is this intended? How do I work around this? This problem leaves the tooltip stuck to the mouse when sliding inventory away.

    Short video demonstration here: https://www.screenr.com/pquN
     
  2. SimonDarksideJ

    SimonDarksideJ

    Joined:
    Jul 3, 2012
    Posts:
    1,683
    I'd say that is a bug you should log.
    In the code logic, the PointerEnter/PointerExit validation is obviously using the PointerMoved event as a start position.

    This would likely be in the StandaloneInputModule or the PointerInputModule

    Not got time to check myself, but you can either have a look in the UI and suggest a fix (and use locally until it is fixed) or just log a bug.
     
  3. PorkMuncher

    PorkMuncher

    Joined:
    Mar 11, 2014
    Posts:
    15
    Thanks, I'll see what I can do...
     
  4. Undertaker-Infinity

    Undertaker-Infinity

    Joined:
    May 2, 2014
    Posts:
    112
    Hi, has this been solved? I'm bumping into it.
     
  5. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,181
    Is there a bug # for this? Want to investigate.