Skip to content

Commit 2caf3ed

Browse files
committed
1.0.1
1 parent 5980d2b commit 2caf3ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/src/main/java/com/lantouzi/wheelview/WheelView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ protected void onDraw(Canvas canvas) {
236236
start = Math.max(start, -mViewScopeSize * 2);
237237
end = Math.min(end, mMarkCount + mViewScopeSize * 2);
238238

239-
// 对两端的绘制范围进行扩展
239+
// extends both ends
240240
if (mCenterIndex == mMarkCount - 1) {
241241
end += mViewScopeSize;
242242
} else if (mCenterIndex == 0) {
@@ -246,7 +246,7 @@ protected void onDraw(Canvas canvas) {
246246
float x = start * mIntervalDis;
247247

248248
float markHeight = mHeight - mBottomSpace - mCenterTextSize - mTopSpace;
249-
// 小刻度的Y方向缩小量
249+
// small scale Y offset
250250
float smallMarkShrinkY = markHeight * (1 - mMarkRatio) / 2f;
251251
smallMarkShrinkY = Math.min((markHeight - mMarkWidth) / 2f, smallMarkShrinkY);
252252

0 commit comments

Comments
 (0)