private void FireScrollEvent(ElementScrollInfo keyboardEvent, Type eventType) { if (_eventPool.ContainsKey(eventType)) { var targetMap = _eventPool[eventType]; foreach (var eItem in targetMap) { eItem.Value.Fire(keyboardEvent, _instancePool[eItem.Key]); } } }
public void OnScroll(ElementScrollInfo scrollEvent) => FireScrollEvent(scrollEvent, typeof(OnScrollEventAttribute));
public void OnScroll(ElementScrollInfo scrollEvent) { Console.WriteLine($"{nameof(EventHubTest)}:{nameof(OnScroll)}:{scrollEvent.ScrollTop}:{scrollEvent.ScrollHeight}"); }