DroidFish: Fixed problem that could cause the second tap when making a move to be ignored.

This commit is contained in:
Peter Osterlund 2014-10-12 00:23:15 +00:00
parent aa95d57e7b
commit b285d6ed6c

View File

@ -759,7 +759,7 @@ public class DroidFish extends Activity implements GUIInterface {
if ((scrollSensitivity > 0) && (cb.sqSize > 0)) {
scrollX += distanceX;
scrollY += distanceY;
float scrollUnit = cb.sqSize * scrollSensitivity;
final float scrollUnit = cb.sqSize * scrollSensitivity;
if (Math.abs(scrollX) >= Math.abs(scrollY)) {
// Undo/redo
int nRedo = 0, nUndo = 0;
@ -794,10 +794,11 @@ public class DroidFish extends Activity implements GUIInterface {
varDelta--;
scrollY += scrollUnit;
}
if (varDelta != 0)
if (varDelta != 0) {
scrollX = 0;
ctrl.changeVariation(varDelta);
return varDelta > 0;
ctrl.changeVariation(varDelta);
}
return varDelta != 0;
}
}
return false;