Skip to content

Commit

Permalink
Merge pull request xdan#685 from degroote-benjamin/Fix/wheel
Browse files Browse the repository at this point in the history
fix timepicker wheel
  • Loading branch information
xdan authored Feb 23, 2019
2 parents 3e051a2 + 1329a33 commit aee154d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.datetimepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit aee154d

Please sign in to comment.