mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Fix selecting, fix drag&drop
This commit is contained in:
parent
a669dec3cf
commit
fb2781909e
@ -22026,15 +22026,14 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
|
|
||||||
private void GoToTimeAndSelectPrecedingParagraph(double timeSeconds)
|
private void GoToTimeAndSelectPrecedingParagraph(double timeSeconds)
|
||||||
{
|
{
|
||||||
var index = 0;
|
|
||||||
|
|
||||||
// Select correct paragraph
|
// Select correct paragraph
|
||||||
|
var index = _subtitle.Paragraphs.Count - 1;
|
||||||
|
|
||||||
for (int i = 0; i < _subtitle.Paragraphs.Count; i++)
|
for (int i = 0; i < _subtitle.Paragraphs.Count; i++)
|
||||||
{
|
{
|
||||||
if (_subtitle.Paragraphs[i].EndTime.TotalSeconds > timeSeconds)
|
if (_subtitle.Paragraphs[i].EndTime.TotalSeconds > timeSeconds)
|
||||||
{
|
{
|
||||||
index = i - 1;
|
index = i - 1;
|
||||||
SelectListViewIndexAndEnsureVisible(index);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -22044,6 +22043,8 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
index = 0;
|
index = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SelectListViewIndexAndEnsureVisible(index);
|
||||||
|
|
||||||
// Seek in waveform
|
// Seek in waveform
|
||||||
if (mediaPlayer.VideoPlayer is null)
|
if (mediaPlayer.VideoPlayer is null)
|
||||||
{
|
{
|
||||||
|
1
src/ui/Forms/VerifyCompleteness.Designer.cs
generated
1
src/ui/Forms/VerifyCompleteness.Designer.cs
generated
@ -166,6 +166,7 @@
|
|||||||
// subtitleListView
|
// subtitleListView
|
||||||
//
|
//
|
||||||
this.subtitleListView.AllowColumnReorder = true;
|
this.subtitleListView.AllowColumnReorder = true;
|
||||||
|
this.subtitleListView.AllowDrop = true;
|
||||||
this.subtitleListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
this.subtitleListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
| System.Windows.Forms.AnchorStyles.Left)
|
| System.Windows.Forms.AnchorStyles.Left)
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
Loading…
Reference in New Issue
Block a user