Is it possible to scroll on mouse click in UI Builder's scroll view?

Hey guys! I need help here.

Is using the scrollers the only way to scroll in the UI Builder’s scroll view?
Why can’t I scroll on mouse click like in older UI scroll view?
Is there a way to enable this behavior?

Hello!

Currently, you require a WheelEvent to scroll, since we need the delta to be able to determine the amount of scrolling. You could possibly simulate that WheelEvent by sending it when processing the Pointer events. Something like:

scrollView.RegisterCallback<PointerUpEvent>(_ =>
{
    using var wheelEvent = WheelEvent.GetPooled(new Event { type=EventType.ScrollWheel, delta=new Vector3(0,10,0) });
    scrollView.SendEvent(wheelEvent);
});

This is just to give you a very rough idea. You might want to calculate the pointer’s start position when processing the pointer down event, and get the current pointer position on pointer up to calculate the correct delta.

Hope that helps!