Search Unity

How to prevent child elements of UI panel from causing OnPointerOut

Discussion in 'UGUI & TextMesh Pro' started by drHogan, Mar 6, 2020.

  1. drHogan

    drHogan

    Joined:
    Sep 26, 2012
    Posts:
    201
    Hi guys, I have a problem like described in the title. Basically I have a scroll list with several clickable items in game, but the mouse scroll wheel also does zoom in an out the game.

    I can't seem to wrap my head around how to capture the mouse presence above the list so to block scrolling in that case (I can detect it on the panel, but then if the point hovers a child element, it's obviously seen as an OnPointerExit.

    Any idea on how to solve it?
    Cheers,
    H