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.
public override void OnDrag(PointerEventData eventData) {
// if (eventData.used) return; // Commented out this line
base.OnDrag(eventData);
}
public override void OnBeginDrag(PointerEventData eventData) {
// if (eventData.used) return; // Commented out this line
// Single touch behaviour
base.OnBeginDrag(eventData);
}
public override void OnEndDrag(PointerEventData eventData) {
// if (eventData.used) return; // Commented out this line
// Single touch behaviour
base.OnEndDrag(eventData);
}
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, andOnEndDragmethods, the code blockif (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.