Record mui pictures slide carousel view of the assembly too slow problem

Examples of image rotation assembly of FIG mui official website sliding speed is too slow, the resulting visual effect is slid over the entire image display mui-slider is fully drawing only switch over point,

Party A man can not feel this effect does not look good,

Solution modify mui.js

= = $ .Slider the Slider var $ .Scroll.extend ({
the init: function (Element, Options) {
this._super (Element, $ .extend (to true, {
Fingers:. 1,
interval The: 0, // set to 0, not timed rotation
scrollY: to false,
the scrollX: to true,
Indicators: to false,
scrollTime: 100,
startX: to false,
slideTime: 0, // sliding animation time
SNAP: SELECTOR_SLIDER_ITEM
}, Options));
IF (this.options.startX ) {
// $ .trigger (this.wrapper, 'scrollend', the this);
}
},
found at this position

ScrollTime modify this value on it. The smaller the number, the faster

Guess you like

Origin www.cnblogs.com/lishuang2243/p/11758691.html