using UnityEngine;
using UnityEngine.UI;
public class ScrollRectSlide : MonoBehaviour
{
ScrollRect _scrollRect;
void Start()
{
_scrollRect = GetComponent<ScrollRect>();
}
// Update is called once per frame
void Update()
{
if (Input.GetMouseButtonDown(0))
{
_scrollRect.normalizedPosition = new Vector2(_scrollRect.normalizedPosition.x, 0);
}
}
}