Fix replay-while-cropping bug

Now there’s a flag that belongs to the window called “isCropping”. if
it’s true, then clicking on the main canvas does not start a replay.