Increase the hit area for removing syllable splits a little
This commit is contained in:
parent
d0a9f3f7cd
commit
5cdcd3dcb3
1 changed files with 2 additions and 2 deletions
|
@ -316,8 +316,8 @@ void AudioKaraoke::OnMouse(wxMouseEvent &event) {
|
||||||
// If the click is sufficiently close to a line of a syllable split,
|
// If the click is sufficiently close to a line of a syllable split,
|
||||||
// remove that split rather than adding a new one
|
// remove that split rather than adding a new one
|
||||||
click_will_remove_split =
|
click_will_remove_split =
|
||||||
(syl > 0 && shifted_pos <= syl_lines[syl - 1] + 2) ||
|
(syl > 0 && shifted_pos <= syl_lines[syl - 1] + 3) ||
|
||||||
(syl < (int)syl_lines.size() && shifted_pos >= syl_lines[syl] - 2);
|
(syl < (int)syl_lines.size() && shifted_pos >= syl_lines[syl] - 3);
|
||||||
|
|
||||||
if (!event.LeftDown()) {
|
if (!event.LeftDown()) {
|
||||||
// Erase the old line and draw the new one
|
// Erase the old line and draw the new one
|
||||||
|
|
Loading…
Reference in a new issue