 
         
         
-        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

        
        
        
        let deltaX = currentPoint.x - correctCenter.x;
        let deltaY = currentPoint.y - correctCenter.y;

        delta = atan2(deltaY,deltaX)
 

    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        copyTransform = self.transform
        
        labelCenter.frame = CGRectMake(0, 0, properties.percentBoxSizeWidth, properties.percentBoxSizeHeight)
