test blob bounciness
This commit is contained in:
@@ -17,12 +17,16 @@ Item {
|
||||
implicitWidth: content.implicitWidth
|
||||
visible: width > 0 && height > 0
|
||||
x: {
|
||||
const off = content.currentCenter - content.nonAnimWidth / 2;
|
||||
if (content.isDetached)
|
||||
return (parent.width - content.nonAnimWidth) / 2;
|
||||
|
||||
const off = content.currentCenter - Config.barConfig.border - content.nonAnimWidth / 2;
|
||||
const diff = parent.width - Math.floor(off + content.nonAnimWidth);
|
||||
if (diff < 0)
|
||||
return off + diff;
|
||||
return Math.floor(Math.max(off, 0));
|
||||
}
|
||||
y: content.isDetached ? (parent.height - content.nonAnimHeight) / 2 : 0
|
||||
|
||||
Behavior on offsetScale {
|
||||
Anim {
|
||||
|
||||
Reference in New Issue
Block a user