Skip to content

Commit

Permalink
Update jquery.datetimepicker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Pomax authored Mar 19, 2018
1 parent d443bae commit 80b269b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions jquery.datetimepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 80b269b

Please sign in to comment.