Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions qml/Keyboard.qml
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,12 @@ Item {
if (keyboardSurface.y > jumpBackThreshold) {
MaliitGeometry.shown = false;
} else {
bounceBackAnimation.from = keyboardSurface.y
bounceBackAnimation.start();
if (maliit_input_method.animationEnabled) {
bounceBackAnimation.from = keyboardSurface.y;
bounceBackAnimation.start();
} else {
keyboardSurface.y = 0;
}
}
}

Expand Down Expand Up @@ -191,10 +195,7 @@ Item {

PropertyAnimation {
id: bounceBackAnimation
// Animations don't have an "enabled" property, so just set the
// target to null if animation is disabled, which effectively also
// disables the animation.
target: Keyboard.animationEnabled ? keyboardSurface : null
target: keyboardSurface
properties: "y"
easing.type: Easing.OutBounce;
easing.overshoot: 2.0
Expand Down