use setCenter instead of panTo to prevent the bug which causes problems in the webview