arengibook 3.1.1-datepicker → 3.1.2-datepicker
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +0 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13246,7 +13246,6 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
13246
13246
|
changeYear(delta); // On change l'année de ±1, pas de ±2
|
|
13247
13247
|
};
|
|
13248
13248
|
useEffect(function () {
|
|
13249
|
-
var yearContainer = document.querySelector('.dp-header-lists');
|
|
13250
13249
|
var yearContainerSingle = document.querySelector('.dp-year-container');
|
|
13251
13250
|
var handleWheel = function handleWheel(e) {
|
|
13252
13251
|
e.preventDefault();
|
|
@@ -13258,20 +13257,12 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
13258
13257
|
wheelCooldown = false;
|
|
13259
13258
|
}, 120); // durée idéale après tests
|
|
13260
13259
|
};
|
|
13261
|
-
if (yearContainer) {
|
|
13262
|
-
yearContainer.addEventListener('wheel', handleWheel, {
|
|
13263
|
-
passive: false
|
|
13264
|
-
});
|
|
13265
|
-
}
|
|
13266
13260
|
if (yearContainerSingle) {
|
|
13267
13261
|
yearContainerSingle.addEventListener('wheel', handleWheel, {
|
|
13268
13262
|
passive: false
|
|
13269
13263
|
});
|
|
13270
13264
|
}
|
|
13271
13265
|
return function () {
|
|
13272
|
-
if (yearContainer) {
|
|
13273
|
-
yearContainer.removeEventListener('wheel', handleWheel);
|
|
13274
|
-
}
|
|
13275
13266
|
if (yearContainerSingle) {
|
|
13276
13267
|
yearContainerSingle.removeEventListener('wheel', handleWheel);
|
|
13277
13268
|
}
|