code: def cancelOperation(self):
          '''
          Cancels the ongoing operation if any.
          '''
          if self.isLongTouchingPoint:
              self.toggleLongTouchPoint()
          elif self.isTouchingPoint:
              self.toggleTouchPoint()
          elif self.isGeneratingTestCondition:
              self.toggleGenerateTestCondition(f cancelOperation(self):
          '''
          Cancels the ongoing operation if any.
          '''
          if self.isLongTouchingPoint:
              self.toggleLongTouchPoint()
          elif self.isTouchingPoint:
              self.toggleTouchPoint()
          elif self.isGeneratingTestCondition:
              self.toggleGenerateTestCondition()
docs: Cancels the ongoing operation if any.