mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
fix timepicker wheel
This commit is contained in:
parent
00c84bec27
commit
8adc163816
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user