From 8adc1638160374fc0514ce38d62d5e294a316e24 Mon Sep 17 00:00:00 2001 From: degroote-benjamin Date: Thu, 30 Aug 2018 15:01:45 +0200 Subject: [PATCH 1/2] fix timepicker wheel --- jquery.datetimepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.datetimepicker.js b/jquery.datetimepicker.js index 60956b6..3c77dfa 100644 --- a/jquery.datetimepicker.js +++ b/jquery.datetimepicker.js @@ -895,7 +895,7 @@ var datetimepickerFactory = function ($) { timeboxparent.on('mousewheel', function (event) { var top = Math.abs(parseInt(timebox.css('marginTop'), 10)); - top = top - (event.deltaY * 20); + top = top - (event.originalEvent.deltaY * 20); if (top < 0) { top = 0; } From 1329a33ff5363864a5bd70fdb3ef7ea9db84dce4 Mon Sep 17 00:00:00 2001 From: degroote-benjamin Date: Thu, 30 Aug 2018 15:14:19 +0200 Subject: [PATCH 2/2] direction was inverse --- jquery.datetimepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.datetimepicker.js b/jquery.datetimepicker.js index 3c77dfa..22eae08 100644 --- a/jquery.datetimepicker.js +++ b/jquery.datetimepicker.js @@ -895,7 +895,7 @@ var datetimepickerFactory = function ($) { timeboxparent.on('mousewheel', function (event) { var top = Math.abs(parseInt(timebox.css('marginTop'), 10)); - top = top - (event.originalEvent.deltaY * 20); + top = top + (event.originalEvent.deltaY * 20); if (top < 0) { top = 0; }