fix pinchopen/close regression on ios from android changes