Awn

more realistic bounce on hover than when opening an application

Bug #130849 reported by jdriessen
2
Affects Status Importance Assigned to Milestone
Awn
Fix Released
Wishlist
Unassigned

Bug Description

when I move my mouse over an icon in the dock it bounces.
when I open an application from the dock it also bounces. but It looks less realistic than the hover bounce.

when I open an application from the dock it doesn't look like bouncing, rather it moves up and down.

when I hove over an Icon, it has a much more realistic bounce effect.

Revision history for this message
Garoth (garoth) wrote :

I know what you mean. The opening one is slower. Hmm, that may just be lag. Let me see if the code is any different...

Oh wow, it is different... what the heck? Nice catch, rather than using a log, it just does + and - 1. The log makes more of an arc. (Emulating gravity.) Good eye.

Ok, working on it.

Revision history for this message
Garoth (garoth) wrote :

Ok, I may or may not fix this one. Feel free to take it if you want. I'll look at it later if no one does. Here is what needs be done though.

1) Set the speed of the refresh to 30 (from 40)
2) Set the max height to 15 (from 14)
3) Change += 1 to "= log10(<an incrementing number, which increases by 1 every run through the function, during that launch>) * 15;"
4) Change -= 1 to "= log10(<an decrementing number, which decreases by 1 every run through the function, during that launch>) * 15;"

In short...

(int) log(1)*15 = 0
(int) log(2)*15 = 4
(int) log(3)*15 = 7
(int) log(4)*15 = 9
(int) log(5)*15 = 10
(int) log(6)*15 = 11
(int) log(7)*15 = 12
(int) log(8)*15 = 13
(int) log(9)*15 = 14
(int) log(10)*15 = 15 exactly
(int) log(9)*15 = 14
... and proceed back down.

Really a cleaver way to do this. I'm impressed :) Why this was not done throughout, I do not know, aside from the fact that you need something like a global variable or another variable in privs to make it work in this case.

Revision history for this message
Garoth (garoth) wrote :

Oh, and bonus hacker points for whoever makes the icons compress on impact while bouncing, for uber realism.

Revision history for this message
Michael Rooney (mrooney) wrote :

The compress on bounce is implemented (as well as some other effects) in a patch over at: http://www.planetblur.org/hosted/awnforum/index.php?shard=forum&action=g_reply&ID=521&page=1. While it isn't stable except for the bounce and spotlight effect, I thought I would mention it before a bunch of work is duplicated.

Revision history for this message
Michael Rooney (mrooney) wrote :

Yeah wow, I never noticed it before but now that you mentioned it, it is really obvious!

I hope this can be fixed and they all use the same effect with the more realistic log function.

Revision history for this message
haytjes (h4writer) wrote :

That's normally something that will get in AWN after version 0.2 has released. For the moment we are trying to get a robust version 0.2.

Changed in awn:
status: New → Fix Committed
Revision history for this message
Michael Rooney (mrooney) wrote :

Does "fix committed" mean this should be fixed in the trunk? I only ask because the problem still remains for me as of the trunk I pulled from bzr last night.

Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

The new icon effect have been released.

Changed in awn:
status: Fix Committed → Fix Released
Michal Hruby (mhr3)
Changed in awn:
importance: Undecided → Wishlist
milestone: 0.3 → 0.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.