Does anyone know a way around this? I’m using an event trigger to reset the visual state of the button after the cursor leaves it (not part of the default functionality, Unity leaves the button in highlighted state on pointerexit)
Even empty event triggers disable drag scrolling of the view port while on buttons.
using UnityEngine;
using System.Collections;
using UnityEngine.EventSystems;
public class Onpointerexit : MonoBehaviour, IPointerExitHandler {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
public void OnPointerExit(PointerEventData dt) {
print("test");
}
}