Skip to content

Commit bf6c6d4

Browse files
committed
issue cocos2d#3192 fixed a bug for baidu browser
1 parent 0b3e5d3 commit bf6c6d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos2d/platform/CCEGLView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ cc.EGLView = cc.Class.extend(/** @lends cc.EGLView# */{
147147
},
148148

149149
_scrollToBottom:function(){
150-
if(cc.Browser.isMobile){
150+
if (cc.Browser.isMobile && cc.Browser.type != "baidubrowser") {
151151
cc.canvas.height = this._ele.clientHeight + 100;
152152
window.location.href="#bottom";
153153
}

0 commit comments

Comments
 (0)