Bug with touch event

This commit is contained in:
Valeriy 2013-12-04 20:39:41 +06:00
parent 0fe171394b
commit a45cbcf47a

View File

@ -81,7 +81,7 @@
timeboxparent.on('touchmove',function( event ){ timeboxparent.on('touchmove',function( event ){
if( start ){ if( start ){
var coord = pointerEventToXY(event), top = Math.abs(parseInt(timebox.css('marginTop'))); var coord = pointerEventToXY(event), top = Math.abs(parseInt(timebox.css('marginTop')));
timeboxparent.trigger('scroll_element.xdsoft_scroller',[(top+(coord.y-start.y)/10)/(height-parentHeight)]); timeboxparent.trigger('scroll_element.xdsoft_scroller',[(top-(coord.y-start.y))/(height-parentHeight)]);
event.stopPropagation(); event.stopPropagation();
event.preventDefault(); event.preventDefault();
}; };