From 4c0f8f3c57edea1f06172a6fe92733ecd71bc423 Mon Sep 17 00:00:00 2001 From: Lawrence Francell Date: Wed, 8 May 2019 14:58:20 -0500 Subject: [PATCH] support for transitionend event When a sticky container is on a css transition, the scroll event may fire and the transition may end after the resolution of the scroll event re-calculating the padding. This causes a possible extra space to be visible. Supporting transitionend will do a recalc to set the padding. --- src/Container.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Container.js b/src/Container.js index 2883a0e4..f8eef000 100644 --- a/src/Container.js +++ b/src/Container.js @@ -24,7 +24,8 @@ export default class Container extends PureComponent { "touchmove", "touchend", "pageshow", - "load" + "load", + "transitionend" ]; subscribers = [];