MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / shake

Method shake

Telegram/SourceFiles/intro/intro_code_input.cpp:49–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void Shaker::shake() {
50 if (_animation.animating()) {
51 return;
52 }
53 _animation.start(DefaultShakeCallback([=, x = _widget->x()](int shift) {
54 _widget->moveToLeft(x + shift, _widget->y());
55 }), 0., 1., st::shakeDuration);
56}
57
58} // namespace
59

Callers 3

requestCodeMethod · 0.45
showErrorMethod · 0.45
keyPressEventMethod · 0.45

Calls 5

DefaultShakeCallbackFunction · 0.85
moveToLeftMethod · 0.80
animatingMethod · 0.45
startMethod · 0.45
yMethod · 0.45

Tested by

no test coverage detected