From dcf73019e95d6f3216dcebad0c9de2bf016e4898 Mon Sep 17 00:00:00 2001 From: srinivas sunil Date: Sat, 27 Feb 2016 16:31:23 +0000 Subject: [PATCH] ScrollConflictManager edited online with Bitbucket --HG-- branch : srinivassunil/scrollconflictmanager-created-online-wit-1456590432246 --- Scripts/ReorderableList/ScrollConflictManager | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Scripts/ReorderableList/ScrollConflictManager b/Scripts/ReorderableList/ScrollConflictManager index e1846ae..2430aea 100644 --- a/Scripts/ReorderableList/ScrollConflictManager +++ b/Scripts/ReorderableList/ScrollConflictManager @@ -6,9 +6,12 @@ using System; //this is the most efficient way to handle scroll conflicts when there are multiple scroll rects -//this is useful when there is a vertical scrollrect in a horizontal scrollrect or vice versa -//gathered and modified from unity answers(delta snipper) +//this is useful when there is a vertical scrollrect in/on a horizontal scrollrect or vice versa +//attach the script to the rect scroll and assign other rectscroll in the inspecter (one is verticle and other is horizontal) +//gathered and modified from unity answers(delta snipper) +namespace UnityEngine.UI.Extensions +{ [RequireComponent(typeof(ScrollRect))] public class ScrollConflictManager : MonoBehaviour, IBeginDragHandler, IEndDragHandler, IDragHandler @@ -81,4 +84,5 @@ public class ScrollConflictManager : MonoBehaviour, IBeginDragHandler, IEndDragH OtherScrollRect.OnDrag(eventData); } } +} } \ No newline at end of file