analysis board: allow going back to initial position

This commit is contained in:
Thibault Duplessis 2015-01-05 09:41:56 +01:00
parent ce46a69f5d
commit b38fa4a9e6

View file

@ -26,7 +26,7 @@ module.exports = {
var p = ctrl.vm.path;
var len = p.length;
if (len === 1) {
if (p[0].ply === 1) return;
if (p[0].ply === 0) return;
p[0].ply--;
} else {
if (p[len - 1].ply > p[len - 2].ply) p[len - 1].ply--;