-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-ui-elements.html
More file actions
369 lines (339 loc) · 11.7 KB
/
Copy pathtest-ui-elements.html
File metadata and controls
369 lines (339 loc) · 11.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Smart Scrolling Test Page</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
line-height: 1.6;
}
.section {
margin: 40px 0;
padding: 20px;
border: 2px solid #ddd;
border-radius: 8px;
background: #f9f9f9;
}
.long-content {
height: 800px;
background: linear-gradient(to bottom, #e3f2fd, #bbdefb);
padding: 20px;
margin: 20px 0;
}
/* State picker dropdown styles */
.state-picker {
position: relative;
display: inline-block;
margin: 20px 0;
}
.state-dropdown {
width: 300px;
max-height: 200px;
overflow-y: auto;
border: 1px solid #ccc;
border-radius: 4px;
background: white;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.state-option {
padding: 10px 15px;
cursor: pointer;
border-bottom: 1px solid #eee;
}
.state-option:hover {
background-color: #f0f0f0;
}
.state-option:last-child {
border-bottom: none;
}
/* Scrollable content area */
.scrollable-content {
height: 300px;
overflow-y: auto;
border: 1px solid #ccc;
padding: 15px;
background: white;
margin: 20px 0;
}
/* Long list */
.long-list {
height: 400px;
overflow-y: auto;
border: 1px solid #ccc;
background: white;
}
.list-item {
padding: 12px 20px;
border-bottom: 1px solid #eee;
cursor: pointer;
}
.list-item:hover {
background-color: #f5f5f5;
}
/* Page content for testing large scrolls */
.page-section {
height: 100vh;
padding: 40px;
margin: 20px 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
font-weight: bold;
}
.section-1 {
background: #ffcdd2;
}
.section-2 {
background: #f8bbd9;
}
.section-3 {
background: #e1bee7;
}
.section-4 {
background: #d1c4e9;
}
.section-5 {
background: #c5cae9;
}
.section-6 {
background: #bbdefb;
}
.section-7 {
background: #b3e5fc;
}
.section-8 {
background: #b2ebf2;
}
.highlight {
background-color: yellow;
padding: 2px 4px;
}
h1,
h2 {
color: #333;
}
.test-instructions {
background: #e8f5e8;
padding: 15px;
border-left: 5px solid #4caf50;
margin: 20px 0;
}
</style>
</head>
<body>
<h1>🧪 Smart Scrolling Test Page</h1>
<div class="test-instructions">
<h3>Test Instructions:</h3>
<ul>
<li>
<strong>Large Scrolls (80-90):</strong> Use for page navigation
between sections
</li>
<li>
<strong>Small Scrolls (5-15):</strong> Use for precise navigation in
dropdowns/lists
</li>
<li>
<strong>Default (no amount):</strong> Should use 90% viewport for
efficient navigation
</li>
</ul>
</div>
<!-- Page sections for testing large scrolls -->
<div class="page-section section-1">
📍 Section 1: START HERE - Test large scrolls (80-90) to navigate between
sections
</div>
<div class="page-section section-2">
📍 Section 2: You should be able to reach this with 1-2 large scrolls
</div>
<div class="page-section section-3">
📍 Section 3: Continue large scrolling to find the UI elements below
</div>
<!-- UI Elements Section -->
<div class="section">
<h2>🎯 UI Elements for Precise Scrolling Tests</h2>
<h3>State Picker Dropdown (Test small scrolls 5-15)</h3>
<div class="state-picker">
<label for="state-select">Select a State:</label>
<div class="state-dropdown" id="state-dropdown">
<div class="state-option">Alabama</div>
<div class="state-option">Alaska</div>
<div class="state-option">Arizona</div>
<div class="state-option">Arkansas</div>
<div class="state-option">California</div>
<div class="state-option">Colorado</div>
<div class="state-option">Connecticut</div>
<div class="state-option">Delaware</div>
<div class="state-option">Florida</div>
<div class="state-option">Georgia</div>
<div class="state-option">Hawaii</div>
<div class="state-option">Idaho</div>
<div class="state-option">Illinois</div>
<div class="state-option">Indiana</div>
<div class="state-option">Iowa</div>
<div class="state-option">Kansas</div>
<div class="state-option">Kentucky</div>
<div class="state-option">Louisiana</div>
<div class="state-option">Maine</div>
<div class="state-option">Maryland</div>
<div class="state-option">Massachusetts</div>
<div class="state-option">Michigan</div>
<div class="state-option">Minnesota</div>
<div class="state-option">Mississippi</div>
<div class="state-option">Missouri</div>
<div class="state-option">Montana</div>
<div class="state-option">Nebraska</div>
<div class="state-option">Nevada</div>
<div class="state-option">New Hampshire</div>
<div class="state-option">New Jersey</div>
<div class="state-option">New Mexico</div>
<div class="state-option">New York</div>
<div class="state-option">North Carolina</div>
<div class="state-option">North Dakota</div>
<div class="state-option">Ohio</div>
<div class="state-option">Oklahoma</div>
<div class="state-option">Oregon</div>
<div class="state-option">Pennsylvania</div>
<div class="state-option">Rhode Island</div>
<div class="state-option">South Carolina</div>
<div class="state-option">South Dakota</div>
<div class="state-option">Tennessee</div>
<div class="state-option">Texas</div>
<div class="state-option">Utah</div>
<div class="state-option">Vermont</div>
<div class="state-option">Virginia</div>
<div class="state-option">Washington</div>
<div class="state-option">West Virginia</div>
<div class="state-option">Wisconsin</div>
<div class="state-option">Wyoming</div>
<div class="state-option highlight">
🎯 TARGET: Find Wyoming with small scrolls!
</div>
</div>
</div>
<h3>Long Product List (Test small scrolls 5-15)</h3>
<div class="long-list">
<div class="list-item">Product 1: Laptop</div>
<div class="list-item">Product 2: Desktop</div>
<div class="list-item">Product 3: Monitor</div>
<div class="list-item">Product 4: Keyboard</div>
<div class="list-item">Product 5: Mouse</div>
<div class="list-item">Product 6: Webcam</div>
<div class="list-item">Product 7: Speakers</div>
<div class="list-item">Product 8: Headphones</div>
<div class="list-item">Product 9: Tablet</div>
<div class="list-item">Product 10: Phone</div>
<div class="list-item">Product 11: Charger</div>
<div class="list-item">Product 12: Cable</div>
<div class="list-item">Product 13: USB Drive</div>
<div class="list-item">Product 14: External Hard Drive</div>
<div class="list-item">Product 15: Printer</div>
<div class="list-item">Product 16: Scanner</div>
<div class="list-item">Product 17: Router</div>
<div class="list-item">Product 18: Modem</div>
<div class="list-item">Product 19: Switch</div>
<div class="list-item">Product 20: Hub</div>
<div class="list-item">Product 21: Adapter</div>
<div class="list-item">Product 22: Converter</div>
<div class="list-item">Product 23: Docking Station</div>
<div class="list-item">Product 24: Stand</div>
<div class="list-item">Product 25: Mount</div>
<div class="list-item highlight">
🎯 TARGET: Find Product 25 with small scrolls!
</div>
</div>
<h3>Scrollable Content Area (Test small scrolls 5-15)</h3>
<div class="scrollable-content">
<p>
This is a scrollable content area. Use small scroll amounts (5-15) to
navigate through this content precisely.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua.
</p>
<p>
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat.
</p>
<p>
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum
dolore eu fugiat nulla pariatur.
</p>
<p>
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui
officia deserunt mollit anim id est laborum.
</p>
<p>
Sed ut perspiciatis unde omnis iste natus error sit voluptatem
accusantium doloremque laudantium.
</p>
<p>
Totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et
quasi architecto beatae vitae dicta sunt.
</p>
<p>
Explicabo nemo enim ipsam voluptatem quia voluptas sit aspernatur aut
odit aut fugit.
</p>
<p>
Sed quia consequuntur magni dolores eos qui ratione voluptatem sequi
nesciunt.
</p>
<p>
Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet,
consectetur, adipisci velit.
</p>
<p class="highlight">
🎯 TARGET: This highlighted text should be reachable with small,
precise scrolls!
</p>
<p>
Sed ut perspiciatis unde omnis iste natus error sit voluptatem
accusantium doloremque laudantium.
</p>
<p>
At vero eos et accusamus et iusto odio dignissimos ducimus qui
blanditiis praesentium voluptatum.
</p>
</div>
</div>
<!-- More page sections for continued large scroll testing -->
<div class="page-section section-4">
📍 Section 4: Use large scrolls (80-90) to continue page navigation
</div>
<div class="page-section section-5">
📍 Section 5: Testing that large scrolls work efficiently
</div>
<div class="page-section section-6">
📍 Section 6: Each large scroll should show ~90% new content
</div>
<div class="page-section section-7">
📍 Section 7: With ~10% overlap for context
</div>
<div class="page-section section-8">
📍 Section 8: END - You've reached the bottom with efficient scrolling!
</div>
<div class="section">
<h2>✅ Test Completion Checklist</h2>
<ul>
<li>
✓ Large scrolls (80-90) efficiently navigate between page sections
</li>
<li>✓ Small scrolls (5-15) precisely navigate within UI elements</li>
<li>✓ Found Wyoming in the state picker using small scrolls</li>
<li>✓ Found Product 25 in the product list using small scrolls</li>
<li>
✓ Found highlighted text in scrollable content using small scrolls
</li>
<li>✓ Default scrolling (no amount) uses 90% viewport efficiently</li>
</ul>
</div>
</body>
</html>