예제 #1
0
 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]);
         }
     }
 }
예제 #2
0
 public void OnScroll(ElementScrollInfo scrollEvent) => FireScrollEvent(scrollEvent, typeof(OnScrollEventAttribute));
예제 #3
0
 public void OnScroll(ElementScrollInfo scrollEvent)
 {
     Console.WriteLine($"{nameof(EventHubTest)}:{nameof(OnScroll)}:{scrollEvent.ScrollTop}:{scrollEvent.ScrollHeight}");
 }