mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
Merge pull request #685 from degroote-benjamin/Fix/wheel
fix timepicker wheel
This commit is contained in:
commit
aee154de73
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user