@vaadin/text-area 22.0.4 → 22.0.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/text-area",
3
- "version": "22.0.4",
3
+ "version": "22.0.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -32,17 +32,17 @@
32
32
  ],
33
33
  "dependencies": {
34
34
  "@polymer/polymer": "^3.0.0",
35
- "@vaadin/component-base": "^22.0.4",
36
- "@vaadin/field-base": "^22.0.4",
37
- "@vaadin/input-container": "^22.0.4",
38
- "@vaadin/vaadin-lumo-styles": "^22.0.4",
39
- "@vaadin/vaadin-material-styles": "^22.0.4",
40
- "@vaadin/vaadin-themable-mixin": "^22.0.4"
35
+ "@vaadin/component-base": "^22.0.7",
36
+ "@vaadin/field-base": "^22.0.7",
37
+ "@vaadin/input-container": "^22.0.7",
38
+ "@vaadin/vaadin-lumo-styles": "^22.0.7",
39
+ "@vaadin/vaadin-material-styles": "^22.0.7",
40
+ "@vaadin/vaadin-themable-mixin": "^22.0.7"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@esm-bundle/chai": "^4.3.4",
44
44
  "@vaadin/testing-helpers": "^0.3.2",
45
45
  "sinon": "^9.2.1"
46
46
  },
47
- "gitHead": "55891f68d4da41e846e06dfe51dceba1665e41ce"
47
+ "gitHead": "947d74491296ca746b360ecb5f5a8efd55ab2866"
48
48
  }
@@ -201,9 +201,13 @@ export class TextArea extends InputFieldMixin(ThemableMixin(ElementMixin(Polymer
201
201
  // event, scrolling manually and then synchronously updating the scroll position CSS variable
202
202
  // allows us to avoid some jumpy behavior that would occur on wheel otherwise.
203
203
  this._inputField.addEventListener('wheel', (e) => {
204
- e.preventDefault();
204
+ const scrollTopBefore = this._inputField.scrollTop;
205
205
  this._inputField.scrollTop += e.deltaY;
206
- this.__scrollPositionUpdated();
206
+
207
+ if (scrollTopBefore !== this._inputField.scrollTop) {
208
+ e.preventDefault();
209
+ this.__scrollPositionUpdated();
210
+ }
207
211
  });
208
212
 
209
213
  this._updateHeight();