mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
Update jquery.datetimepicker.js
This commit is contained in:
parent
d443bae502
commit
80b269bdb9
@ -1060,9 +1060,8 @@ var datetimepickerFactory = function ($) {
|
||||
|
||||
var handleTouchMoved = function (event) {
|
||||
var evt = event.originalEvent;
|
||||
var position = evt.touches ? evt.touches[0] : evt;
|
||||
this.touchStartPosition = this.touchStartPosition || position;
|
||||
var touchPosition = position;
|
||||
var touchPosition = evt.touches ? evt.touches[0] : evt;
|
||||
this.touchStartPosition = this.touchStartPosition || touchPosition;
|
||||
var xMovement = Math.abs(this.touchStartPosition.clientX - touchPosition.clientX);
|
||||
var yMovement = Math.abs(this.touchStartPosition.clientY - touchPosition.clientY);
|
||||
var distance = Math.sqrt(xMovement * xMovement + yMovement * yMovement);
|
||||
|
Loading…
Reference in New Issue
Block a user