 
         
         
-        let deltaX = currentPoint.x - correctCenter.x;
-        let deltaY = currentPoint.y - correctCenter.y;
+        let deltaX = currentPoint.x - self.frame.width/2
+        let deltaY = currentPoint.y - self.frame.height/2
         
         let ang = atan2(deltaY,deltaX);
         let angleDifference = delta - ang

    
    override init(frame: CGRect) {
        super.init(frame: frame)
        correctCenter = CGPointMake(self.frame.size.width/2, self.frame.size.height/2)
        copyTransform = self.transform
        
        labelCenter.frame = CGRectMake(0, 0, properties.percentBoxSizeWidth, properties.percentBoxSizeHeight)

    
    
    func ignoreThisTap(currentPoint:CGPoint) -> Bool {
        let dx = currentPoint.x - self.frame.width/2
        let dy = currentPoint.y - self.frame.height/2
        let sqroot = sqrt(dx*dx + dy*dy)
        return sqroot < properties.smallRadius || sqroot > (properties.bigRadius + properties.expand + (properties.bigRadius-properties.smallRadius)/2)
    }
