| @@ -117,22 +117,22 @@ | ||
| 117 | 117 | if (pcpCarouselData.autoplay === false) { |
| 118 | 118 | pcpSwiper.autoplay.stop() |
| 119 | 119 | } |
| 120 | 120 | if (pcpCarouselData.stop_onHover && pcpCarouselData.autoplay) { |
| 121 | - $(pcpCarousel).on({ | |
| 122 | - mouseenter: function () { | |
| 123 | - pcpSwiper.autoplay.stop(); | |
| 124 | - }, | |
| 125 | - mouseleave: function () { | |
| 126 | - pcpSwiper.autoplay.start(); | |
| 127 | - } | |
| 128 | - }); | |
| 121 | + $(pcpCarousel).hover( | |
| 122 | + function () { | |
| 123 | + pcpSwiper.autoplay.stop() | |
| 124 | + }, | |
| 125 | + function () { | |
| 126 | + pcpSwiper.autoplay.start() | |
| 127 | + } | |
| 128 | + ) | |
| 129 | + } | |
| 130 | + $(window).resize(function () { | |
| 131 | + pcpSwiper.update() | |
| 132 | + }) | |
| 133 | + $(window).trigger("resize") | |
| 129 | 134 | } |
| 130 | - $(window).on('resize', function () { | |
| 131 | - pcpSwiper.update() | |
| 132 | - }) | |
| 133 | - $(window).trigger("resize") | |
| 134 | - } | |
| 135 | 135 | |
| 136 | 136 | /** |
| 137 | 137 | * Grid masonry. |
| 138 | 138 | */ |