Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

删除无效判断 #94

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/flexible.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
var devicePixelRatio = win.devicePixelRatio;
if (isIPhone) {
// iOS下,对于2和3的屏,用2倍的方案,其余的用1倍方案
if (devicePixelRatio >= 3 && (!dpr || dpr >= 3)) {
if (devicePixelRatio >= 3) {
dpr = 3;
} else if (devicePixelRatio >= 2 && (!dpr || dpr >= 2)){
} else if (devicePixelRatio >= 2){
dpr = 2;
} else {
dpr = 1;
Expand Down Expand Up @@ -114,4 +114,4 @@
return val;
}

})(window, window['lib'] || (window['lib'] = {}));
})(window, window['lib'] || (window['lib'] = {}));