Merge "Check the tile's state before handling long clicks" into main