Bug 1348052 - Change the scroll buttons in the datetime picker to move the view, not the list. r=mconley

MozReview-Commit-ID: EfgDEg6jY7F

--HG--
extra : rebase_source : db35c38213c04ef2b5a0ebcefe9b67de90b70bb8
This commit is contained in:
Ian Moody 2017-03-17 21:47:46 +00:00
Родитель 66cb2e3b5e
Коммит e242765ef2
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -300,11 +300,11 @@ function Spinner(props, context) {
// An "active" class is needed to simulate :active pseudo-class
// because element is not focused.
event.target.classList.add("active");
this._smoothScrollToIndex(index + 1);
this._smoothScrollToIndex(index - 1);
}
if (event.target == down) {
event.target.classList.add("active");
this._smoothScrollToIndex(index - 1);
this._smoothScrollToIndex(index + 1);
}
if (event.target.parentNode == spinner) {
// Listen to dragging events