commit 7a733a8cf8ce2ae9949436991e1dd27cb629bbb0
Author: Leszek Koltunski <leszek@koltunski.pl>
Date:   Fri Jun 25 23:35:54 2021 +0200

    Important bugfix: no we cannot unblock touch when WIN effect finishes, because
    
    1) starting the WIN effect does not block touch in the first place
    2) it can happen that this unblocking happens when we have started finishing the rotation but haven't removed it yet
    
    If 2) happens and the user is swiping his finger, he is able to add a new rotation while the previous one hasn't been removed yet - with disastrous consequences.

diff --git a/src/main/java/org/distorted/main/RubikPreRender.java b/src/main/java/org/distorted/main/RubikPreRender.java
index 72ccd2ed..06441370 100644
--- a/src/main/java/org/distorted/main/RubikPreRender.java
+++ b/src/main/java/org/distorted/main/RubikPreRender.java
@@ -698,7 +698,10 @@ public class RubikPreRender implements EffectController
         {
         if( effectID == mEffectID[i] )
           {
-          unblockEverything();
+          if( i!=BaseEffect.Type.WIN.ordinal() )
+            {
+            unblockEverything();
+            }
 
           if( i==BaseEffect.Type.SCRAMBLE.ordinal() )
             {
diff --git a/src/main/java/org/distorted/main/RubikSurfaceView.java b/src/main/java/org/distorted/main/RubikSurfaceView.java
index 5d3e7813..3a61bc5c 100644
--- a/src/main/java/org/distorted/main/RubikSurfaceView.java
+++ b/src/main/java/org/distorted/main/RubikSurfaceView.java
@@ -372,12 +372,6 @@ public class RubikSurfaceView extends GLSurfaceView
         float distNow  = (float)Math.sqrt( (x-x2)*(x-x2) + (y-y2)*(y-y2) );
         float distQuot = mInitDistance<0 ? 1.0f : distNow/ mInitDistance;
         mInitDistance = distNow;
-/*
-if( angleDiff< 0.00001f && angleDiff>-0.00001f)
-  android.util.Log.e("D", " distQuot="+distQuot);
-else
- android.util.Log.e("D", "angelDiff "+angleDiff+" distQuot="+distQuot);
-*/
         TwistyObject object = mPreRender.getObject();
         if( object!=null ) object.setObjectRatio(distQuot);
         }
