forked from mia/Aegisub
Make middle-click on the audio display seek the video to the clicked on time
Originally committed to SVN as r5577.
This commit is contained in:
parent
02d4ee0cec
commit
1c4410bb87
1 changed files with 8 additions and 1 deletions
|
@ -55,10 +55,12 @@
|
|||
#include "audio_timing.h"
|
||||
#include "block_cache.h"
|
||||
#include "include/aegisub/audio_provider.h"
|
||||
#include "include/aegisub/context.h"
|
||||
#include "include/aegisub/hotkey.h"
|
||||
#include "main.h"
|
||||
#include "selection_controller.h"
|
||||
#include "utils.h"
|
||||
#include "video_context.h"
|
||||
|
||||
class AudioDisplayScrollbar : public AudioDisplayInteractionObject {
|
||||
static const int height = 10;
|
||||
|
@ -1149,7 +1151,12 @@ void AudioDisplay::OnMouseEvent(wxMouseEvent& event)
|
|||
}
|
||||
}
|
||||
|
||||
/// @todo Handle middle click to seek video
|
||||
if (event.MiddleDown())
|
||||
{
|
||||
context->videoController->JumpToTime(
|
||||
controller->MillisecondsFromSamples(SamplesFromRelativeX(mousepos.x)),
|
||||
agi::vfr::EXACT);
|
||||
}
|
||||
}
|
||||
|
||||
void AudioDisplay::OnKeyDown(wxKeyEvent& event)
|
||||
|
|
Loading…
Reference in a new issue