Merge pull request #685 from degroote-benjamin/Fix/wheel

fix timepicker wheel
This commit is contained in:
Valeriy Chupurnov 2019-02-23 13:28:38 +03:00 committed by GitHub
commit aee154de73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -896,7 +896,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;
}