Commit a8e0927a by lmf

优化详情色块显示不稳定

parent 665635a3
...@@ -186,7 +186,7 @@ define([ ...@@ -186,7 +186,7 @@ define([
settings.focusableStart = this.settings.$element.find('[data-gallery-role="fotorama__focusable-start"]'); settings.focusableStart = this.settings.$element.find('[data-gallery-role="fotorama__focusable-start"]');
settings.focusableEnd = this.settings.$element.find('[data-gallery-role="fotorama__focusable-end"]'); settings.focusableEnd = this.settings.$element.find('[data-gallery-role="fotorama__focusable-end"]');
settings.closeIcon = this.settings.$element.find('[data-gallery-role="fotorama__fullscreen-icon"]'); settings.closeIcon = this.settings.$element.find('[data-gallery-role="fotorama__fullscreen-icon"]');
settings.fullscreenConfig.swipe = true; //settings.fullscreenConfig.swipe = true;
settings.$gallery.on('fotorama:fullscreenenter', function () { settings.$gallery.on('fotorama:fullscreenenter', function () {
settings.closeIcon.show(); settings.closeIcon.show();
...@@ -537,9 +537,9 @@ define([ ...@@ -537,9 +537,9 @@ define([
returnCurrentImages: function () { returnCurrentImages: function () {
var images = []; var images = [];
_.each(this.fotorama.data, function (item) { // _.each(this.fotorama.data, function (item) {
images.push(_.omit(item, '$navThumbFrame', '$navDotFrame', '$stageFrame', 'labelledby')); // images.push(_.omit(item, '$navThumbFrame', '$navDotFrame', '$stageFrame', 'labelledby'));
}); // });
return images; return images;
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment