forked from enlightenment/efl
luncher: Until we fix expansion zoom a little less.
This allows an area in the middle where you are only over 1 icon... clicktastic
This commit is contained in:
parent
ca075ce21f
commit
633bcfbefb
|
@ -44,9 +44,10 @@ group { name: "e/gadget/luncher/icon";
|
||||||
public urgent;
|
public urgent;
|
||||||
public style;
|
public style;
|
||||||
public Float:engage_scale(cursorpos, iconpos, size) {
|
public Float:engage_scale(cursorpos, iconpos, size) {
|
||||||
new Float:scale = 2.25 - (abs(cursorpos-(iconpos+size/2)) / (size*2));
|
new Float:zoom = 1.5;
|
||||||
|
new Float:scale = (zoom+0.25) - (abs(cursorpos-(iconpos+size/2)) / (size*2));
|
||||||
if (scale < 1.0) scale = 1.0;
|
if (scale < 1.0) scale = 1.0;
|
||||||
if (scale > 2.0) scale = 2.0;
|
if (scale > zoom) scale = zoom;
|
||||||
|
|
||||||
return scale;
|
return scale;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue