At PinchableScrollRect.97, the code accesses eventData.pressEventCamera. This can be null when no press happened yet (e.g. when you opened a ScrollRect through a keyboard shortcut and directly scroll). Zooming will work, but the reference point won't be set correctly, leading the zoom to jump around the screen erratically.
I fixed this for me by replacing it with eventData.enterEventCamera:
if (!RectTransformUtility.ScreenPointToLocalPointInRectangle(_content, eventData.position, eventData.enterEventCamera, out localPos)) return;
At
PinchableScrollRect.97, the code accesseseventData.pressEventCamera. This can be null when no press happened yet (e.g. when you opened a ScrollRect through a keyboard shortcut and directly scroll). Zooming will work, but the reference point won't be set correctly, leading the zoom to jump around the screen erratically.I fixed this for me by replacing it with
eventData.enterEventCamera:if (!RectTransformUtility.ScreenPointToLocalPointInRectangle(_content, eventData.position, eventData.enterEventCamera, out localPos)) return;