Example #1
0
 internal protected virtual void TriggerOnMouseScrolled(Component sender, int x, int y, int delta)
 {
     if (OnMouseScrolled != null)
     {
         OnMouseScrolled.Invoke(new MouseScrollEventArgs(sender, x, y, delta));
     }
 }
Example #2
0
        private static void OnMouseScrolledCallback(int amount)
        {
            OnMouseScrolled handler = MouseScrolledCallback;

            if (handler != null)
            {
                handler(amount);
            }
        }