Skip to content

Commit 0d50015

Browse files
author
Michał Skowronek
authored
Merge pull request #25 from coderitual/dev
Dev
2 parents ee97aa7 + ae6ac7b commit 0d50015

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/odoo.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/odoo.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ export default ({
136136
const filterOrigin = targetDistance / 2;
137137
const motionValue = Math.abs(Math.abs(value - filterOrigin) - filterOrigin) / 100;
138138
select(`#motionFilter-${digit.id} .blurValues`)::attr('stdDeviation', `0 ${motionValue}`);
139-
}
139+
},
140+
end: i === 0 ? () => cancelAnimation() : (e) => e
140141
});
141142
transitions.push(digitTransition);
142143
});
@@ -157,5 +158,6 @@ export default ({
157158
transitions.forEach(transition => transition.update(timestamp));
158159
};
159160

160-
return loop(update);
161+
const cancelAnimation = loop(update);
162+
return cancelAnimation;
161163
};

0 commit comments

Comments
 (0)