- Home /
OnPointerUp not called if mouse is down for a time greater than 4-5 seconds
Hello! I just discovered that OnPointerUp is not getting called on UI element if the mouse is pressed on it for over 3-4 seconds. This only happens when using mouse (works fine on mobile devices). Do you have any idea if this is a bug or I am doing something wrong?
This my component which is attached to a button. That is the only object in the scene. using UnityEngine; using UnityEngine.EventSystems; using System.Collections; public class InputClass : IPointerDownHandler, IPointerUpHandler { #region IPointerDownHandler implementation public void OnPointerDown (PointerEventData eventData) { Debug.Log ("DOWN"); } public void OnPointerUp (PointerEventData eventData) { Debug.Log ("UP"); } #endregion }
It works properly on my machine. Do you have the last version of Unity engine?
Your answer

Follow this Question
Related Questions
Image.fillAmount not updating GUI 1 Answer
Unity [2020.1.15f1] Scrollbar moving up by itself 0 Answers
Selecting a selectable using script doesn't seem to work anymore? 1 Answer
button.Select() and alternatives don't seem to work when called via new input system 1 Answer
Random image that only shows on build 0 Answers