Merge branch 'hotfixes' of https://github.com/qPCR4vir/nana into qPCR4vir-hotfixes

This commit is contained in:
Jinhao
2015-04-23 23:21:26 +08:00
4 changed files with 607 additions and 346 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -122,14 +122,14 @@ namespace nana
if(metrics_.value <= metrics_.range)
metrics_.value = 0;
else
metrics_.value -= metrics_.range;
metrics_.value -= (metrics_.range-1);
}
else if(buttons::backward == metrics_.what)
{
if(metrics_.peak - metrics_.range - metrics_.value <= metrics_.range)
metrics_.value = metrics_.peak - metrics_.range;
else
metrics_.value += metrics_.range;
metrics_.value += (metrics_.range-1);
}
}
}