| 614 | } |
| 615 | |
| 616 | void AudioDisplay::ScrollPixelToLeft(int pixel_position) |
| 617 | { |
| 618 | const int client_width = GetClientRect().GetWidth(); |
| 619 | |
| 620 | if (pixel_position + client_width >= pixel_audio_width) |
| 621 | pixel_position = pixel_audio_width - client_width; |
| 622 | if (pixel_position < 0) |
| 623 | pixel_position = 0; |
| 624 | |
| 625 | scroll_left = pixel_position; |
| 626 | scrollbar->SetPosition(scroll_left); |
| 627 | timeline->SetPosition(scroll_left); |
| 628 | Refresh(); |
| 629 | } |
| 630 | |
| 631 | void AudioDisplay::ScrollTimeRangeInView(const TimeRange &range) |
| 632 | { |
no test coverage detected