1# ArkUI Subsystem Changelog
2
3## cl.arkui.1 Optimization of Coordinates in Gesture Event Return Value
4
5**Access Level**
6
7Public
8
9**Reason for Change**
10
11In earlier versions, after a component is translated, rotated, or scaled, the coordinates returned from the event are incorrect and cannot be mapped to the coordinate system.
12
13**Change Impact**
14
15The returned coordinates can be mapped to the coordinate system.
16
17**Change Since**
18
19OpenHarmony SDK 4.1.3.3
20
21**Key API/Component Changes**
22
23* **offsetX**, **offsetY**, **pinchCenterX**, **pinchCenterY**, and **speed** in **GestureEvent**
24
25* **localX** and **localY** in **FingerInfo**
26
27* **x** and **y** in **ClickEvent**
28
29* **x** and **y** in **TouchObject**
30
31**Adaptation Guide**
32
33N/A
34
35## cl.ArkUI.2 Change to the selectBackgroundColor Attribute of the \<TextInput> Component
36
37**Access Level**
38Public
39
40**Reason for Change**
41If the **ResourceColor** value of **selectedBackgroundColor** does not have the opacity specified, text will be masked when selected.
42
43**Change Impact**
44This change is a compatible change. If the **ResourceColor** value of **selectedBackgroundColor** does not have the opacity specified, a 20% opacity will be used.
45
46**Change Since**
47OpenHarmony SDK 4.1.3.3
48
49**Key API/Component Changes**
50**selectedBackgroundColor** attribute of the **\<TextInput>** component
51
52**Adaptation Guide**
53N/A
54
55## cl.ArkUI.3 Change to the Default Behavior for the animationDuration Attribute of the \<Tabs> Component
56
57**Access Level**
58
59Public
60
61**Reason for Change**
62
63The **\<Tabs>** component's **animationDuration** attribute did not exhibit consistent default behaviors:
64If **animationDuration** is not set, no tab switching animation is displayed when a specific tab is clicked; if it is set to a value less than 0, a tab switching animation is displayed when a specific tab is clicked, and the default value 300 ms is used.
65
66**Change Impact**
67
68This change is a non-compatible change.
69In API version 10 and earlier versions, if **animationDuration** is not set, no tab switching animation is displayed when a specific tab is clicked.
70Since API version 11, if **animationDuration** is not set, a tab switching animation is displayed when a specific tab is clicked, and the default value 300 ms is used.
71
72**Change Since**
73
74OpenHarmony SDK 4.1.3.3
75
76**Key API/Component Changes**
77
78**animationDuration** attribute of the **\<Tabs>** component
79
80**Adaptation Guide**
81
82Before the change, if you do not want to display a tab switching animation when a specific tab is clicked, set **animationDuration** to **0** or do not set it at all.
83After the change, if you do not want to display a tab switching animation when a specific tab is clicked:<br>API version 11 or later: Set **animationDuration** to **0**.<br>API version 10 or earlier: Set **animationDuration** to **0** or do not set it at all.
84
85## cl.ArkUI.4 Change to the padding Attribute of the \<TextInput> Component
86
87**Access Level**
88
89Public
90
91**Reason for Change**
92
93When **padding** is set to **{left:10vp}**, the top, bottom, and right paddings are at 0, instead of at their default values.
94
95**Change Impact**
96
97This change is a non-compatible change. When **padding** is set to **{left:10vp}**, the top, bottom, and right paddings are at their default values, which are 16 vp, 16 vp, and 8 vp, respectively.
98
99**Change Since**
100
101All versions
102
103**Key API/Component Changes**
104
105**padding** attribute of the **\<TextInput>** component
106
107**Adaptation Guide**
108
109If you want to set the left padding of the **\<TextInput>** component to 10 vp and other paddings to 0, set **padding** to **{left:10vp, right:0vp, top:0vp, bottom:0vp}**. If the padding for a specific direction is not specified, the default value is used.
110
111## cl.ArkUI.5 Change to the Line Height of the \<Text> component
112
113**Access Level**
114
115Other
116
117**Reason for Change**
118
119The line height of the **\<Text>** component must be the same as the font size, instead of being fixed at 14 px.
120
121**Change Impact**
122
123This change is a non-compatible change.
124
125In API version 10 and earlier versions, when **fontSize('20px')** is set, the line height of the **\<Text>** component is 14 px, and the line height of its child component **\<Span>** is also fixed at 14 px.
126
127Since API version 11, when **fontSize('20px')** is set, the line height of the **\<Text>** component is 20 px, and the line height of its child component **\<Span>** is fixed at 14 px.
128
129**Change Since**
130
131OpenHarmony SDK 4.1.3.3
132
133**Key API/Component Changes**
134
135**\<Text>** component
136
137**Adaptation Guide**
138
139N/A
140
141## cl.ArkUI.6 Bug Fix for scrollTo Calls in the Scroller
142
143**Access Level**
144
145Public
146
147**Reason for Change**
148
149 This change is made to fix the following bug: When the scroller calls the **scrollTo** method, if the scrolling distance of the **\<Grid>** component is beyond the current page height along the main axis, the target position has an error of **rowsGap** multiplied by number of rows.
150
151**Change Impact**
152
153This change is a compatible change. After change, a **scrollTo** method call will scroll the **\<Grid>** component to a more precise position.
154
155**API Level**
156
1577
158
159**Change Since**
160
161OpenHarmony 4.1.3.3
162
163**Key API/Component Changes**
164
165**\<Grid>** component
166
167**Adaptation Guide**
168
169N/A
170