Skip to content

Commit

Permalink
Issue #9: prevent default behavior on mouse-wheel.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericcitaire committed Aug 23, 2013
1 parent 3ef2b0e commit 55a499c
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -213,6 +213,7 @@ public void onMouseWheel(MouseWheelEvent event) {
timeValue.setHours(timeValue.getHours() - 1);
}
updateTimeValue(true, oldHour, hour);
event.preventDefault();
}
});
hoursBox.addBlurHandler(new BlurHandler() {
Expand Down Expand Up @@ -279,6 +280,7 @@ public void onMouseWheel(MouseWheelEvent event) {
} else {
decreaseValue();
}
event.preventDefault();
}
});
minutesBox.addBlurHandler(new BlurHandler() {
Expand Down

0 comments on commit 55a499c

Please sign in to comment.