Fix pinch/zoom gesture hanging at certain positions