fix timepicker wheel

This commit is contained in:
degroote-benjamin 2018-08-30 15:01:45 +02:00 committed by GitHub
parent 00c84bec27
commit 8adc163816
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -895,7 +895,7 @@ var datetimepickerFactory = function ($) {
timeboxparent.on('mousewheel', function (event) { timeboxparent.on('mousewheel', function (event) {
var top = Math.abs(parseInt(timebox.css('marginTop'), 10)); var top = Math.abs(parseInt(timebox.css('marginTop'), 10));
top = top - (event.deltaY * 20); top = top - (event.originalEvent.deltaY * 20);
if (top < 0) { if (top < 0) {
top = 0; top = 0;
} }