mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
Bug with touch event
This commit is contained in:
parent
0fe171394b
commit
a45cbcf47a
@ -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();
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user