You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Continuously zooming and panning with the mouse causes panning to be interrupted. #3
As the title says, after an interruption, panning will no longer be usable, only zooming is functioning as normal.
Through debugging, I found that in the PinchableScrollRect.OnDrag, OnBeginDrag, and OnEndDrag methods, the code block if (eventData.used) return; was causing an early return.
I commented out this code, which resolved the issue, but I'm not sure if this fix is appropriate.
publicoverridevoidOnDrag(PointerEventDataeventData){// if (eventData.used) return; // Commented out this linebase.OnDrag(eventData);}publicoverridevoidOnBeginDrag(PointerEventDataeventData){// if (eventData.used) return; // Commented out this line// Single touch behaviourbase.OnBeginDrag(eventData);}publicoverridevoidOnEndDrag(PointerEventDataeventData){// if (eventData.used) return; // Commented out this line// Single touch behaviourbase.OnEndDrag(eventData);}
Activity
LokoSoloGames commentedon Nov 7, 2025
May I ask what do you mean by interruption?