Scroll Rect: disable click and drag and keep scroll wheel?

Is there a way to disable click+drag scrolling on Scroll Rect but keep hover + mouse wheel scrolling?

2 Likes

A day later, found the answer! The solution is to create a component that inherits from ScrollRect:

public class ScrollRectNoDrag : ScrollRect {
	public override void OnBeginDrag(PointerEventData eventData) { }
	public override void OnDrag(PointerEventData eventData) { }
	public override void OnEndDrag(PointerEventData eventData) { }
}