no commit message
This commit is contained in:
+27
-10
@@ -4168,15 +4168,16 @@
|
|||||||
C['tip']['triangle'].removeClass('ck-triangle-left').addClass('ck-triangle-auto');
|
C['tip']['triangle'].removeClass('ck-triangle-left').addClass('ck-triangle-auto');
|
||||||
}
|
}
|
||||||
tipResize(ele,cl,align);
|
tipResize(ele,cl,align);
|
||||||
if(tipSetTime){
|
if(isUndefined(CT.tipSetTimeOut)){
|
||||||
clearTimeout(tipSetTime);
|
CT.closeTipSetTimeOut=function(){
|
||||||
tipSetTime=null;
|
if(tipSetTime){
|
||||||
|
clearTimeout(tipSetTime);
|
||||||
|
tipSetTime=null;
|
||||||
|
}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
var mouseOut=function(){
|
var mouseOut=function(){
|
||||||
if(tipSetTime){
|
CT.closeTipSetTimeOut();
|
||||||
clearTimeout(tipSetTime);
|
|
||||||
tipSetTime=null;
|
|
||||||
}
|
|
||||||
tipSetTime=setTimeout(function(){
|
tipSetTime=setTimeout(function(){
|
||||||
C['tip'].hide();
|
C['tip'].hide();
|
||||||
C['tip'].removeClass('ck-animate');
|
C['tip'].removeClass('ck-animate');
|
||||||
@@ -4244,7 +4245,8 @@
|
|||||||
function progressDragX(){
|
function progressDragX(){
|
||||||
var bg=C['bar']['pbox']['bg'],
|
var bg=C['bar']['pbox']['bg'],
|
||||||
play=C['bar']['pbox']['play'],
|
play=C['bar']['pbox']['play'],
|
||||||
slider=C['bar']['pbox']['slider'];
|
slider=C['bar']['pbox']['slider'],
|
||||||
|
mouseLine=C['bar']['pbox']['mouseLine'];
|
||||||
slider.unbind();
|
slider.unbind();
|
||||||
bg.unbind();
|
bg.unbind();
|
||||||
var pos = 0,
|
var pos = 0,
|
||||||
@@ -4439,11 +4441,13 @@
|
|||||||
'left': w-slider.getWidth()*.5 + 'px'
|
'left': w-slider.getWidth()*.5 + 'px'
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
var moveTimer=null;
|
||||||
var bgMouseMove=function(e){
|
var bgMouseMove=function(e){
|
||||||
e = e || window.event;
|
e = e || window.event;
|
||||||
var client = getClient(e);
|
var client = getClient(e);
|
||||||
var bgOffset=bg.offset();
|
var bgOffset=bg.offset();
|
||||||
var w=client['x']-bgOffset['left'];
|
var w=client['x']-bgOffset['left'];
|
||||||
|
clearTime();
|
||||||
if(CT.full){
|
if(CT.full){
|
||||||
w+=CK.offset()['left'];
|
w+=CK.offset()['left'];
|
||||||
}
|
}
|
||||||
@@ -4457,14 +4461,27 @@
|
|||||||
time=formatLiveTime(getLiveTime()*w/bg.getWidth());
|
time=formatLiveTime(getLiveTime()*w/bg.getWidth());
|
||||||
}
|
}
|
||||||
tip(bg,time,client);
|
tip(bg,time,client);
|
||||||
C['bar']['pbox']['mouseLine'].css({'left':w-(C['bar']['pbox']['mouseLine'].getWidth()*.5)+'px'});
|
mouseLine.css({'left':w-(C['bar']['pbox']['mouseLine'].getWidth()*.5)+'px'});
|
||||||
|
};
|
||||||
|
var moveTimer=null;
|
||||||
|
var clearTime=function(){
|
||||||
|
if(moveTimer){
|
||||||
|
clearTimeout(moveTimer);
|
||||||
|
moveTimer=null;
|
||||||
|
}
|
||||||
|
CT.closeTipSetTimeOut();
|
||||||
};
|
};
|
||||||
var bgMouseOut=function(e){
|
var bgMouseOut=function(e){
|
||||||
showPreview(-1);
|
clearTime();
|
||||||
|
moveTimer=setTimeout(function(){
|
||||||
|
showPreview(-1);
|
||||||
|
tip();
|
||||||
|
},30);
|
||||||
};
|
};
|
||||||
bg.mousedown(bgMouseDown);
|
bg.mousedown(bgMouseDown);
|
||||||
bg.mousemove(bgMouseMove);
|
bg.mousemove(bgMouseMove);
|
||||||
bg.mouseout(bgMouseOut);
|
bg.mouseout(bgMouseOut);
|
||||||
|
mouseLine.mouseover(clearTime);
|
||||||
};
|
};
|
||||||
/*
|
/*
|
||||||
* volumeDragY
|
* volumeDragY
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user