Exemplo n.º 1
0
        void HandleScrollEvent(object o, Gtk.ScrollEventArgs args)
        {
            var sc        = ConvertToScreenCoordinates(new Point(0, 0));
            var direction = Util.ConvertScrollDirection(args.Event.Direction);

            var a = new MouseScrolledEventArgs((long)args.Event.Time, args.Event.XRoot - sc.X, args.Event.YRoot - sc.Y, direction);

            Toolkit.Invoke(delegate {
                EventSink.OnMouseScrolled(a);
            });
            if (a.Handled)
            {
                args.RetVal = true;
            }
        }