直接重写ScrollRect 部分方法即可
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
using SuperScrollView;
public class VHScrollRect : ScrollRect {
public ScrollRect parentScroll;
public LoopListView2 loopView;
public bool isVertical = false;
private bool isSelf = false;
protected override void Start() {
base.Start();
isVertical = base.vertical;
}
public override void OnBeginDrag(PointerEventData eventData) {
Vector2 touchDeltaPosition;
#if UNITY_EDITOR || UNITY_STANDALONE_WIN
float delta_x = Input.GetAxis("Mouse X");
float delta_y = Input.GetAxis("Mouse Y");
touchDeltaPosition = new Vector2(delta_x, delta_y);
#else
touchDeltaPosition = Input.GetTouch(0).deltaPosition;
#endif
if (isVertical) {
if (Mathf.Abs(touchDeltaPosition.x) < Mathf.Abs