{"action":"created","issue":{"url":"https://api.github.com/repos/psifidotos/Latte-Dock/issues/852","repository_url":"https://api.github.com/repos/psifidotos/Latte-Dock","labels_url":"https://api.github.com/repos/psifidotos/Latte-Dock/issues/852/labels{/name}","comments_url":"https://api.github.com/repos/psifidotos/Latte-Dock/issues/852/comments","events_url":"https://api.github.com/repos/psifidotos/Latte-Dock/issues/852/events","html_url":"https://github.com/psifidotos/Latte-Dock/issues/852","id":293562465,"number":852,"title":"Improve Parabolic Effect","user":{"login":"andreyorst","id":19470159,"avatar_url":"https://avatars3.githubusercontent.com/u/19470159?v=4","gravatar_id":"","url":"https://api.github.com/users/andreyorst","html_url":"https://github.com/andreyorst","followers_url":"https://api.github.com/users/andreyorst/followers","following_url":"https://api.github.com/users/andreyorst/following{/other_user}","gists_url":"https://api.github.com/users/andreyorst/gists{/gist_id}","starred_url":"https://api.github.com/users/andreyorst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreyorst/subscriptions","organizations_url":"https://api.github.com/users/andreyorst/orgs","repos_url":"https://api.github.com/users/andreyorst/repos","events_url":"https://api.github.com/users/andreyorst/events{/privacy}","received_events_url":"https://api.github.com/users/andreyorst/received_events","type":"User","site_admin":false},"labels":[{"id":506691739,"url":"https://api.github.com/repos/psifidotos/Latte-Dock/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-02-01T15:02:38Z","updated_at":"2018-02-02T12:32:28Z","closed_at":null,"author_association":"NONE","body":"Hello. I've discovered what particulary makes animation in Latte dock look not as good as it is done in plank or OSX dock. See video below:\r\n[![Latte vs Plank on youtube](http://img.youtube.com/vi/eLv_4EPZtEA/0.jpg)](https://www.youtube.com/watch?v=eLv_4EPZtEA \"Latte vs Plank on youtube\")\r\n\r\nIn case you don't have access to youtube [latte vs plank.zip](https://github.com/psifidotos/Latte-Dock/files/1685879/latte.vs.plank.zip)\r\n\r\nSo when I move cursor to dock it starts \"zoom animation\". After that when animation is complete and I move pointer alongside Latte there is another animation, i'll call it \"roll animation\" with kinda different behavior, as now it detects position of cursor. So for example if i had a wacom tablet and jumped with cursor it would zom out and zoom in in other place immidiately. It would not do full zoom out, than do full zoom in animations. But not when im leaving dock, because zoom in animation is slow. And until it completes the zoom in animation the siderolling effect isn't applied. Compare plank with latte. Plank does it a lot smoothely because it dont wait until zoom in completes."},"comment":{"url":"https://api.github.com/repos/psifidotos/Latte-Dock/issues/comments/362574400","html_url":"https://github.com/psifidotos/Latte-Dock/issues/852#issuecomment-362574400","issue_url":"https://api.github.com/repos/psifidotos/Latte-Dock/issues/852","id":362574400,"user":{"login":"psifidotos","id":2216474,"avatar_url":"https://avatars0.githubusercontent.com/u/2216474?v=4","gravatar_id":"","url":"https://api.github.com/users/psifidotos","html_url":"https://github.com/psifidotos","followers_url":"https://api.github.com/users/psifidotos/followers","following_url":"https://api.github.com/users/psifidotos/following{/other_user}","gists_url":"https://api.github.com/users/psifidotos/gists{/gist_id}","starred_url":"https://api.github.com/users/psifidotos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psifidotos/subscriptions","organizations_url":"https://api.github.com/users/psifidotos/orgs","repos_url":"https://api.github.com/users/psifidotos/repos","events_url":"https://api.github.com/users/psifidotos/events{/privacy}","received_events_url":"https://api.github.com/users/psifidotos/received_events","type":"User","site_admin":false},"created_at":"2018-02-02T12:32:28Z","updated_at":"2018-02-02T12:32:28Z","author_association":"OWNER","body":"> I mainly ment disable only zoom in animation, but not disabling effect entirely, so parabolic effect will remain and will be controlled with the slider.\r\n\r\nmakes sense... even though many things will need to be adjusted for such case.... but it is feasible.\r\n\r\n\r\nfor the plasmoid case you can look at:\r\n```\r\nplasmoid/package/contents/ui/task/TaskWrapper.qml\r\nplasmoid/package/contents/ui/task/TaskDelegate.qml\r\nplasmoid/package/contents/ui/ParabolicManager.qml\r\n```\r\n\r\nit is a bit complex and sophisticated, but as general architecture it works like this: \r\n- each task when contains the mouse zooms in and sends to its two neighbours two signals about how much they must be zoomed in (ParabolicManager makes these calculations after it is called from the current task).\r\n\r\nthe zoom in animation speed can be found at TaskWrapper.qml, (line 119):\r\n\r\n```\r\n    Behavior on mScale {\r\n        enabled: !root.globalDirectRender || inMimicParabolicAnimation\r\n        NumberAnimation { duration: 3 * mainItemContainer.animationTime }\r\n    }\r\n```\r\n\r\nby changing the duration value you can make faster or slower...\r\n\r\n**How To Test:**\r\n\r\n1. make your changes\r\n2. install Latte again\r\n3. close Latte\r\n4. rerun Latte\r\n"}}
{"actor":{"display_login":"psifidotos"}}