Skip to content

Commit

Permalink
Update jQuery plugin to version 1.6.13
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Oct 8, 2021
1 parent cb4e438 commit fdeed35
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions src/Resources/public/js/rocksolid-slider.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! rocksolid-slider v1.6.12 */
/*! rocksolid-slider v1.6.13 */
(function($, window, document) {

var Rst = {};
Expand Down Expand Up @@ -234,10 +234,10 @@ Rst.Slide = (function() {
var src = event && event.target && (event.target.currentSrc || event.target.src);
if (src) {
var srcKey = ((event && event.type) || 'none') + '\n' + src;
if (loadedSources[srcKey]) {
if ((loadedSources[srcKey] || 0) > Date.now() - 100) {
return;
}
loadedSources[srcKey] = true;
loadedSources[srcKey] = Date.now();
}

self.slider.resize(self.data.index);
Expand Down Expand Up @@ -1975,6 +1975,10 @@ Rst.Slider = (function() {
self.modify(slide.element, {opacity: 0});
}
self.elements.slides.append(slide.element);
// Force Chrome to recalculate responsive images
slide.element.find('img').each(function () {
this.src += '';
});
slide.size(size.x, size.y);
}
else if (
Expand Down
Loading

0 comments on commit fdeed35

Please sign in to comment.