Skip to content

Commit

Permalink
fix: fix detect orientation bug, close #91
Browse files Browse the repository at this point in the history
  • Loading branch information
06wj committed Jul 18, 2017
1 parent b9176d6 commit 93537c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ var browser = (function(){
* 是否支持检测设备方向orientation。
* @type {Boolean}
*/
supportOrientation: 'orientation' in win,
supportOrientation: 'orientation' in win || 'orientation' in win.screen,

/**
* 是否支持检测加速度devicemotion。
Expand Down

0 comments on commit 93537c7

Please sign in to comment.