Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

kPOPLayerPosition jumps in the beginning #358

Open
nderkach opened this issue Mar 27, 2017 · 0 comments
Open

kPOPLayerPosition jumps in the beginning #358

nderkach opened this issue Mar 27, 2017 · 0 comments

Comments

@nderkach
Copy link

I'm using the following code to animate layer position:

        POPBasicAnimation *movePrivateAnimation = [POPBasicAnimation animationWithPropertyNamed:kPOPLayerPosition];
        movePrivateAnimation.toValue = [NSValue valueWithCGPoint:CGPointMake(self.privateBlipControl.layer.position.x + 30.0, self.privateBlipControl.layer.position.y + 29.0)];
        movePrivateAnimation.duration = 2.3;
        [self.privateBlipControl pop_addAnimation:movePrivateAnimation forKey:@"movePrivateIcon"];

What happens is that the layer jumps quickly in the beginning and the continues at a regular pace. Here is a debug log for this animation:

2017-03-27 18:48:46.925933 Blip[4170:1059545] events:(
    "<POPAnimationEvent:0.000000; type = read; value = NSPoint: {71.5, 74.75}>",
    "<POPAnimationEvent:0.000000; type = didStart; animation = <POPBasicAnimation:0x176058a20; from = (71.500, 74.750); to = (101.500, 103.750); currentValue = (71.500, 74.750); progress = 0.000000; duration = 2.300000>>",
    "<POPAnimationEvent:0.000000; type = write; value = NSPoint: {71.5, 74.75}>",
    "<POPAnimationEvent:0.247858; type = write; value = NSPoint: {74.713170822072058, 77.856065128002996}>",
    "<POPAnimationEvent:0.252509; type = write; value = NSPoint: {74.812811946030209, 77.95238488116253}>",
    "<POPAnimationEvent:0.271849; type = write; value = NSPoint: {75.242120577291914, 78.36738322471551}>",
    "<POPAnimationEvent:0.281246; type = write; value = NSPoint: {75.459168093531943, 78.577195823747545}>",
    "<POPAnimationEvent:0.297695; type = write; value = NSPoint: {75.851880380367049, 78.956817701021478}>",
    "<POPAnimationEvent:0.314420; type = write; value = NSPoint: {76.267032927208334, 79.358131829634729}>",
    "<POPAnimationEvent:0.331038; type = write; value = NSPoint: {76.694263096554209, 79.771120993335742}>",
    "<POPAnimationEvent:0.361288; type = write; value = NSPoint: {77.505597441032393, 80.555410859664647}>",
    "<POPAnimationEvent:0.364440; type = write; value = NSPoint: {77.592384624943008, 80.639305137444907}>",
    "<POPAnimationEvent:0.381056; type = write; value = NSPoint: {78.055942584928118, 81.08741116543051}>",
    "<POPAnimationEvent:0.397737; type = write; value = NSPoint: {78.530560814160992, 81.546208787022294}>",
    "<POPAnimationEvent:0.414475; type = write; value = NSPoint: {79.014536173542908, 82.014051634424803}>",
    "<POPAnimationEvent:0.431104; type = write; value = NSPoint: {79.501420483207838, 82.484706467100921}>",
    "<POPAnimationEvent:0.448020; type = write; value = NSPoint: {80.001330063931832, 82.967952395134105}>",
    "<POPAnimationEvent:0.464434; type = write; value = NSPoint: {80.471094529478691, 83.422058045162728}>",
    "<POPAnimationEvent:0.481168; type = write; value = NSPoint: {81.00258778333199, 83.935834857220925}>",
    "<POPAnimationEvent:0.497709; type = write; value = NSPoint: {81.482020079659776, 84.399286077004447}>",
    "<POPAnimationEvent:0.514499; type = write; value = NSPoint: {81.981900137325184, 84.882503466081005}>",
    "<POPAnimationEvent:0.531050; type = write; value = NSPoint: {82.472433285083198, 85.356685508913756}>",
    "<POPAnimationEvent:0.547731; type = write; value = NSPoint: {82.96356971196569, 85.831450721566839}>",
    "<POPAnimationEvent:0.564827; type = write; value = NSPoint: {83.462527217993269, 86.313776310726837}>",
    "<POPAnimationEvent:0.581095; type = write; value = NSPoint: {83.93243866360045, 86.768024041480444}>",
    "<POPAnimationEvent:0.597755; type = write; value = NSPoint: {84.408052465477965, 87.227784049962025}>",
    "<POPAnimationEvent:0.614430; type = write; value = NSPoint: {84.877758535510438, 87.681833250993421}>",
    "<POPAnimationEvent:0.631121; type = write; value = NSPoint: {85.341101128012838, 88.129731090412406}>",
    "<POPAnimationEvent:0.647755; type = write; value = NSPoint: {85.795680904194768, 88.569158207388284}>",
    "<POPAnimationEvent:0.664484; type = write; value = NSPoint: {86.245219819683143, 89.003712492360378}>",
    "<POPAnimationEvent:0.681316; type = write; value = NSPoint: {86.689513055770036, 89.433195953911039}>",
    "<POPAnimationEvent:0.697741; type = write; value = NSPoint: {87.115151089054578, 89.844646052752751}>",
    "<POPAnimationEvent:0.714722; type = write; value = NSPoint: {87.546728232914575, 90.261837291817415}>",
    "<POPAnimationEvent:0.731194; type = write; value = NSPoint: {87.930950606580055, 90.633252253027393}>",
    "<POPAnimationEvent:0.747782; type = write; value = NSPoint: {88.331073864744411, 91.020038069252934}>",
    "<POPAnimationEvent:0.764429; type = write; value = NSPoint: {88.723784215557998, 91.399658075039383}>",
    "<POPAnimationEvent:0.781409; type = write; value = NSPoint: {89.115241377650577, 91.778066665062227}>",
    "<POPAnimationEvent:0.797748; type = write; value = NSPoint: {89.48325427815611, 92.13381246888423}>",
    "<POPAnimationEvent:0.814471; type = write; value = NSPoint: {89.851209939105331, 92.489502941135157}>",
    "<POPAnimationEvent:0.831257; type = write; value = NSPoint: {90.211762513448477, 92.838037096333522}>",
    "<POPAnimationEvent:0.847902; type = write; value = NSPoint: {90.560692837353173, 93.1753364094414}>",
    "<POPAnimationEvent:0.864618; type = write; value = NSPoint: {90.902619452649773, 93.505865470894776}>",
    "<POPAnimationEvent:0.881254; type = write; value = NSPoint: {91.23460541671551, 93.826785236158329}>",
    "<POPAnimationEvent:0.898111; type = write; value = NSPoint: {91.562671944639845, 94.14391621315184}>",
    "<POPAnimationEvent:0.914479; type = write; value = NSPoint: {91.8733525074516, 94.444240757203218}>",
    "<POPAnimationEvent:0.942020; type = write; value = NSPoint: {92.378968695511077, 94.933003072327381}>",
    "<POPAnimationEvent:0.947779; type = write; value = NSPoint: {92.482043647596498, 95.032642192676605}>",
    "<POPAnimationEvent:0.964426; type = write; value = NSPoint: {92.774898090909545, 95.315734821212573}>",
    "<POPAnimationEvent:0.981093; type = write; value = NSPoint: {93.060662384683496, 95.591973638527378}>",
    "<POPAnimationEvent:0.997755; type = write; value = NSPoint: {93.339079941290947, 95.86111060991459}>",
    "<POPAnimationEvent:1.014517; type = write; value = NSPoint: {93.611983652678617, 96.124917530922659}>",
    "<POPAnimationEvent:1.031344; type = write; value = NSPoint: {93.878853772836266, 96.382891980408388}>",
    "<POPAnimationEvent:1.047966; type = write; value = NSPoint: {94.135660748094054, 96.631138723157591}>",
    "<POPAnimationEvent:1.064501; type = write; value = NSPoint: {94.384553576758918, 96.871735124200285}>",
    "<POPAnimationEvent:1.081112; type = write; value = NSPoint: {94.628136753829281, 97.107198862034977}>",
    "<POPAnimationEvent:1.097756; type = write; value = NSPoint: {94.865860342627172, 97.336998331206274}>",
    "<POPAnimationEvent:1.117880; type = write; value = NSPoint: {95.145026223816274, 97.606858683022395}>",
    "<POPAnimationEvent:1.131164; type = write; value = NSPoint: {95.32445337893283, 97.780304932968392}>",
    "<POPAnimationEvent:1.147777; type = write; value = NSPoint: {95.543535520385518, 97.99208433637267}>",
    "<POPAnimationEvent:1.164474; type = write; value = NSPoint: {95.757921647277129, 98.199324259034569}>",
    "<POPAnimationEvent:1.181279; type = write; value = NSPoint: {95.967951628632733, 98.402353241011639}>",
    "<POPAnimationEvent:1.197810; type = write; value = NSPoint: {96.169050744543199, 98.596749053058431}>",
    "<POPAnimationEvent:1.214531; type = write; value = NSPoint: {96.367034448231834, 98.788133299957451}>",
    "<POPAnimationEvent:1.231174; type = write; value = NSPoint: {96.558804875471338, 98.973511379622295}>",
    "<POPAnimationEvent:1.247815; type = write; value = NSPoint: {96.745394266247132, 99.153881124038904}>",
    "<POPAnimationEvent:1.264435; type = write; value = NSPoint: {96.926705978083334, 99.329149112147221}>",
    "<POPAnimationEvent:1.281175; type = write; value = NSPoint: {97.104342253970245, 99.500864178837901}>",
    "<POPAnimationEvent:1.297818; type = write; value = NSPoint: {97.27611036929838, 99.666906690321781}>",
    "<POPAnimationEvent:1.314527; type = write; value = NSPoint: {97.443814408968564, 99.829020595336274}>",
    "<POPAnimationEvent:1.331163; type = write; value = NSPoint: {97.606153751139686, 99.985948626101703}>",
    "<POPAnimationEvent:1.347823; type = write; value = NSPoint: {97.764204662184326, 100.13873117344485}>",
    "<POPAnimationEvent:1.364662; type = write; value = NSPoint: {97.91944398391152, 100.28879585111446}>",
    "<POPAnimationEvent:1.381122; type = write; value = NSPoint: {98.066911578852228, 100.43134785955715}>",
    "<POPAnimationEvent:1.397880; type = write; value = NSPoint: {98.212786812962207, 100.57236058586346}>",
    "<POPAnimationEvent:1.414510; type = write; value = NSPoint: {98.353390621956748, 100.70827760122486}>",
    "<POPAnimationEvent:1.431130; type = write; value = NSPoint: {98.489862455910952, 100.84020037404726}>",
    "<POPAnimationEvent:1.447801; type = write; value = NSPoint: {98.622758458049844, 100.96866650944818}>",
    "<POPAnimationEvent:1.464491; type = write; value = NSPoint: {98.751884358998723, 101.09348821369876}>",
    "<POPAnimationEvent:1.481455; type = write; value = NSPoint: {98.879199004924686, 101.21655903809386}>",
    "<POPAnimationEvent:1.497821; type = write; value = NSPoint: {98.998344482162864, 101.3317329994241}>",
    "<POPAnimationEvent:1.514484; type = write; value = NSPoint: {99.115998818833319, 101.44546552487222}>",
    "<POPAnimationEvent:1.531226; type = write; value = NSPoint: {99.230583082587401, 101.55623031316783}>",
    "<POPAnimationEvent:1.547830; type = write; value = NSPoint: {99.340697601943731, 101.66267434854561}>",
    "<POPAnimationEvent:1.564462; type = write; value = NSPoint: {99.447547667366919, 101.76596274512136}>",
    "<POPAnimationEvent:1.581265; type = write; value = NSPoint: {99.552052166885204, 101.86698376132236}>",
    "<POPAnimationEvent:1.597832; type = write; value = NSPoint: {99.651775691321106, 101.96338316827708}>",
    "<POPAnimationEvent:1.614538; type = write; value = NSPoint: {99.749053007764047, 102.05741790750524}>",
    "<POPAnimationEvent:1.631172; type = write; value = NSPoint: {99.842710917115468, 102.14795388654495}>",
    "<POPAnimationEvent:1.647818; type = write; value = NSPoint: {99.933283970644567, 102.23550783828975}>",
    "<POPAnimationEvent:1.664504; type = write; value = NSPoint: {100.02097807439839, 102.32027880525177}>",
    "<POPAnimationEvent:1.681136; type = write; value = NSPoint: {100.10535931826301, 102.40184734098757}>",
    "<POPAnimationEvent:1.697823; type = write; value = NSPoint: {100.18703049608023, 102.48079614621089}>",
    "<POPAnimationEvent:1.714521; type = write; value = NSPoint: {100.26580987334856, 102.55694954423694}>",
    "<POPAnimationEvent:1.731160; type = write; value = NSPoint: {100.34143916119903, 102.63005785582574}>",
    "<POPAnimationEvent:1.747807; type = write; value = NSPoint: {100.41428321648594, 102.70047377593642}>",
    "<POPAnimationEvent:1.764484; type = write; value = NSPoint: {100.48447483287748, 102.76832567178157}>",
    "<POPAnimationEvent:1.781202; type = write; value = NSPoint: {100.55209860882192, 102.83369532186119}>",
    "<POPAnimationEvent:1.798008; type = write; value = NSPoint: {100.62090771984518, 102.90021079585034}>",
    "<POPAnimationEvent:1.814505; type = write; value = NSPoint: {100.68181156054477, 102.95908450852662}>",
    "<POPAnimationEvent:1.831202; type = write; value = NSPoint: {100.74093428128586, 103.01623647190966}>",
    "<POPAnimationEvent:1.847907; type = write; value = NSPoint: {100.79758196886853, 103.07099590323958}>",
    "<POPAnimationEvent:1.864492; type = write; value = NSPoint: {100.85138008023047, 103.12300074422279}>",
    "<POPAnimationEvent:1.881140; type = write; value = NSPoint: {100.90297447763938, 103.17287532838472}>",
    "<POPAnimationEvent:1.897862; type = write; value = NSPoint: {100.95240384266441, 103.22065704790893}>",
    "<POPAnimationEvent:1.914530; type = write; value = NSPoint: {100.99931630258575, 103.26600575916622}>",
    "<POPAnimationEvent:1.931234; type = write; value = NSPoint: {101.0440084584629, 103.30920817651413}>",
    "<POPAnimationEvent:1.947840; type = write; value = NSPoint: {101.08616232669627, 103.34995691580639}>",
    "<POPAnimationEvent:1.964514; type = write; value = NSPoint: {101.12624043531112, 103.38869908746742}>",
    "<POPAnimationEvent:1.981199; type = write; value = NSPoint: {101.16412152810832, 103.42531747717139}>",
    "<POPAnimationEvent:1.997834; type = write; value = NSPoint: {101.19970548238592, 103.45971529963973}>",
    "<POPAnimationEvent:2.014514; type = write; value = NSPoint: {101.2332255516212, 103.49211803323382}>",
    "<POPAnimationEvent:2.031160; type = write; value = NSPoint: {101.26455407813003, 103.52240227552571}>",
    "<POPAnimationEvent:2.047933; type = write; value = NSPoint: {101.29400565711805, 103.55087213521411}>",
    "<POPAnimationEvent:2.064546; type = write; value = NSPoint: {101.32111059353753, 103.57707357375293}>",
    "<POPAnimationEvent:2.081194; type = write; value = NSPoint: {101.34624113326751, 103.60136642882526}>",
    "<POPAnimationEvent:2.097902; type = write; value = NSPoint: {101.36944295141362, 103.62379485303316}>",
    "<POPAnimationEvent:2.114563; type = write; value = NSPoint: {101.39059473819907, 103.64424158025909}>",
    "<POPAnimationEvent:2.131224; type = write; value = NSPoint: {101.40979283465029, 103.66279974016194}>",
    "<POPAnimationEvent:2.147868; type = write; value = NSPoint: {101.42704654773411, 103.67947832947631}>",
    "<POPAnimationEvent:2.164507; type = write; value = NSPoint: {101.44239821466714, 103.69431827417823}>",
    "<POPAnimationEvent:2.181224; type = write; value = NSPoint: {101.45593822495853, 103.70740695079324}>",
    "<POPAnimationEvent:2.199935; type = write; value = NSPoint: {101.4688876050545, 103.71992468488601}>",
    "<POPAnimationEvent:2.216480; type = write; value = NSPoint: {101.47842313232235, 103.72914236124494}>",
    "<POPAnimationEvent:2.233170; type = write; value = NSPoint: {101.48624728832343, 103.73670571204597}>",
    "<POPAnimationEvent:2.249915; type = write; value = NSPoint: {101.4925393007001, 103.74278799067676}>",
    "<POPAnimationEvent:2.266451; type = write; value = NSPoint: {101.49663409097843, 103.74674628794583}>",
    "<POPAnimationEvent:2.283247; type = write; value = NSPoint: {101.49915589547282, 103.7491840322904}>",
    "<POPAnimationEvent:2.299897; type = write; value = NSPoint: {101.499999839003, 103.74999984436957}>",
    "<POPAnimationEvent:2.299897; type = didReachToValue; value = NSPoint: {101.5, 103.75}>",
    "<POPAnimationEvent:2.316589; type = write; value = NSPoint: {101.5, 103.75}>",
    "<POPAnimationEvent:2.316589; type = didStop; animation = <POPBasicAnimation:0x176058a20; from = (71.500, 74.750); to = (101.500, 103.750); duration = 2.300000>; value = 1>"
)

I'm using the most current version from GitHub.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant