The rotation function through the mouse left button is working well before I changed the “pan” function from mouse left + shift button to mouse right button. But after the pan function is changed to mouse right button, the whole model disappeared after pan(with mouse right button) - rotation(with mouse left button).
The modified code is attached, is there something wrong?