From b44a7b8469e4fd01ea1e37b9bb5ef98bc664ff3f Mon Sep 17 00:00:00 2001 From: Yujingyi <349758699@qq.com> Date: Sun, 11 Dec 2016 16:53:14 +0800 Subject: [PATCH] add transitionEnd event listener on container --- blazy.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/blazy.js b/blazy.js index 00af78d..55d7841 100644 --- a/blazy.js +++ b/blazy.js @@ -88,6 +88,8 @@ if (scope.options.container) { each(scope.options.container, function(object) { unbindEvent(object, 'scroll', util.validateT); + unbindEvent(object, 'transitionend', util.validateT); + unbindEvent(object, 'webkitTransitionEnd', util.validateT); }); } unbindEvent(window, 'scroll', util.validateT); @@ -136,6 +138,8 @@ if (self.options.container) { each(self.options.container, function(object) { bindEvent(object, 'scroll', util.validateT); + bindEvent(object, 'transitionend', util.validateT); + bindEvent(object, 'webkitTransitionEnd', util.validateT); }); } bindEvent(window, 'resize', util.saveViewportOffsetT);