// IsHovered is set on the client side. Every time a person gets hovered, isHovered is set to 1. // And the value is set to 0 on blur. public void Handle(Input.IsHovered action) { if (!this.DataIsLoaded && action.Value != 0) { Random rnd = new Random(); AsyncInputHandlers.Run(() => StartDataRetrieval(rnd.Next(minDataRetrievalDelay, maxDataRetrievalDelay))); } }
// IsHovered is set on the client side. Every time a person gets hovered, isHovered is set to 1. // And the value is set to 0 on blur. public void Handle(Input.IsHovered action) { if (!this.DataIsLoaded && action.Value != 0) { Random rnd = new Random(); StartDataRetrieval(rnd.Next(minDataRetrievalDelay, maxDataRetrievalDelay), Session.SessionId); } }