Closed rcpooley closed 3 years ago
There must exist a reason why these conditions were added in the first place. What will removing them break?
Since the default is true
, the only place that is affected in lila is studies:
ui/analyse/src/ground.ts: eraseOnClick: !ctrl.opts.study || !!ctrl.opts.practice,
There, clicking an empty square would no longer clear the drawings, exactly as you analyzed. However that's the behavior we want.
So it's really the name of this option that's misleading. It could have been called eraseOnAnyClick
or eraseEvenOnMovablePieceClick
.
Old Logic
Assuming white to move
eraseOnClick=true
eraseOnClick=false
New Logic
eraseOnClick=true
eraseOnClick=false