Skip to content

Commit

Permalink
再生時に表示の切り替えを小節の区切りにあわせるようにしました.(終端)
Browse files Browse the repository at this point in the history
  • Loading branch information
fourthline committed Apr 6, 2014
1 parent 3a88b12 commit 6b5ad1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/fourthline/mabiicco/ui/MMLSeqView.java
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,10 @@ public void run() {
int x2 = x1 + dim.width - measure;
if ( (position < x1) || (position > x2) ) {
/* ビュー外にあるので、現在のポジションにあわせる */
if (position + dim.width > pianoRollView.getWidth()) {
position = (pianoRollView.getWidth() - dim.width);
position -= position % measure;
}
point.setLocation(position, point.getY());
viewport.setViewPosition(point);
}
Expand Down

0 comments on commit 6b5ad1d

Please sign in to comment.