@vaadin/vaadin-text-field 2.9.1 → 2.9.2
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
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"repository": "vaadin/vaadin-text-field",
|
|
11
11
|
"homepage": "https://vaadin.com/components",
|
|
12
12
|
"name": "@vaadin/vaadin-text-field",
|
|
13
|
-
"version": "2.9.
|
|
13
|
+
"version": "2.9.2",
|
|
14
14
|
"main": "vaadin-text-field.js",
|
|
15
15
|
"author": "Vaadin Ltd",
|
|
16
16
|
"license": "Apache-2.0",
|
package/src/vaadin-text-area.js
CHANGED
|
@@ -149,7 +149,7 @@ class TextAreaElement extends
|
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
static get version() {
|
|
152
|
-
return '2.9.
|
|
152
|
+
return '2.9.2';
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
static get properties() {
|
|
@@ -181,9 +181,13 @@ class TextAreaElement extends
|
|
|
181
181
|
// event, scrolling manually and then synchronously updating the scroll position CSS variable
|
|
182
182
|
// allows us to avoid some jumpy behavior that would occur on wheel otherwise.
|
|
183
183
|
this._inputField.addEventListener('wheel', (e) => {
|
|
184
|
-
|
|
184
|
+
const scrollTopBefore = this._inputField.scrollTop;
|
|
185
185
|
this._inputField.scrollTop += e.deltaY;
|
|
186
|
-
|
|
186
|
+
|
|
187
|
+
if (scrollTopBefore !== this._inputField.scrollTop) {
|
|
188
|
+
e.preventDefault();
|
|
189
|
+
this.__scrollPositionUpdated();
|
|
190
|
+
}
|
|
187
191
|
});
|
|
188
192
|
|
|
189
193
|
this.__scrollPositionUpdated();
|