| 54 | } |
| 55 | } |
| 56 | void CombinedAudioMidiRegion::mouseMagnify(const MouseEvent& event, float scaleFactor) |
| 57 | { |
| 58 | auto time_start_view = mViewportPtr->getViewPositionX() / (mBaseNumPixelsPerSecond * mZoomLevel); |
| 59 | _setZoomLevel(mZoomLevel * scaleFactor); |
| 60 | mViewportPtr->setViewPosition(roundToInt(time_start_view * mBaseNumPixelsPerSecond * mZoomLevel), 0); |
| 61 | repaint(); |
| 62 | } |
| 63 | |
| 64 | void CombinedAudioMidiRegion::filesDropped(const StringArray& files, int x, int y) |
| 65 | { |
nothing calls this directly
no outgoing calls
no test coverage detected