vendor/assets/javascripts/extensions/_xpull.js in active_frontend-15.0.5 vs vendor/assets/javascripts/extensions/_xpull.js in active_frontend-15.0.6

- old
+ new

@@ -142,12 +142,16 @@ that.elast = true; }, 300); }); }, changeStyle: function (top, transition) { + var topPx = top + 'px'; + var heightPx = top > 50 ? '50px' : topPx; + var changeCss = { - transform: 'translate3d(0px, ' + top + 'px, 0px)', - transition: 'transform 0.3s ease-in-out' + height: heightPx, + transform: 'translate3d(0px, ' + heightPx + ', 0px)', + transition: 'transform 0s ease-in-out' }; if (!transition) { changeCss.transition = ''; }