Skip to content

Commit 06ed11f

Browse files
committed
Merge branch 'pr/74'
2 parents cb0ef99 + d993621 commit 06ed11f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

library/src/main/java/com/alamkanak/weekview/WeekView.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,6 +1433,14 @@ else if (hour > 24)
14331433
invalidate();
14341434
}
14351435

1436+
/**
1437+
* Get the first hour that is visible on the screen.
1438+
* @return The first hour that is visible.
1439+
*/
1440+
public double getFirstVisibleHour(){
1441+
return -mCurrentOrigin.y / mHourHeight;
1442+
}
1443+
14361444

14371445

14381446
/////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)