def METHOD_NAME(self, cursorX, cursorY):
    cursorX = self.entry.guiItem.getCursorX() * self.entry['text_scale'][0]
    canvasX = self.canvas.getX()
    visXMin = self.clipXMin - canvasX
    visXMax = self.clipXMax - canvasX
    visXCenter = (visXMin + visXMax) * 0.5
    distanceToCenter = visXCenter - cursorX
    clipExtent = self.clipXMax - self.clipXMin
    entryExtent = self.entry['text_scale'][0] * self.entry['width']
    entryWiggle = entryExtent - clipExtent
    if abs(distanceToCenter) > (clipExtent * 0.5):
        self.moveToCenterCursor()