Increase the hit area for removing syllable splits a little

This commit is contained in:
Thomas Goyne 2012-10-05 08:06:25 -07:00
parent d0a9f3f7cd
commit 5cdcd3dcb3
1 changed files with 2 additions and 2 deletions

View File

@ -316,8 +316,8 @@ void AudioKaraoke::OnMouse(wxMouseEvent &event) {
// If the click is sufficiently close to a line of a syllable split,
// remove that split rather than adding a new one
click_will_remove_split =
(syl > 0 && shifted_pos <= syl_lines[syl - 1] + 2) ||
(syl < (int)syl_lines.size() && shifted_pos >= syl_lines[syl] - 2);
(syl > 0 && shifted_pos <= syl_lines[syl - 1] + 3) ||
(syl < (int)syl_lines.size() && shifted_pos >= syl_lines[syl] - 3);
if (!event.LeftDown()) {
// Erase the old line and draw the new one