chayns-api 1.1.12 → 1.1.14
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.
|
@@ -448,14 +448,16 @@ class AppWrapper {
|
|
|
448
448
|
awaitResult: false
|
|
449
449
|
});
|
|
450
450
|
},
|
|
451
|
-
scrollToY: async position => {
|
|
451
|
+
scrollToY: async (position, duration) => {
|
|
452
452
|
window.scrollTo({
|
|
453
|
-
top: position
|
|
453
|
+
top: position,
|
|
454
|
+
behavior: duration ? 'smooth' : 'auto'
|
|
454
455
|
});
|
|
455
456
|
},
|
|
456
457
|
scrollByY: (value, duration) => {
|
|
457
458
|
window.scrollBy({
|
|
458
|
-
top: value
|
|
459
|
+
top: value,
|
|
460
|
+
behavior: duration ? 'smooth' : 'auto'
|
|
459
461
|
});
|
|
460
462
|
},
|
|
461
463
|
sendMessageToGroup: async (groupId, message) => {
|
|
@@ -412,14 +412,16 @@ export class AppWrapper {
|
|
|
412
412
|
awaitResult: false
|
|
413
413
|
});
|
|
414
414
|
},
|
|
415
|
-
scrollToY: async position => {
|
|
415
|
+
scrollToY: async (position, duration) => {
|
|
416
416
|
window.scrollTo({
|
|
417
|
-
top: position
|
|
417
|
+
top: position,
|
|
418
|
+
behavior: duration ? 'smooth' : 'auto'
|
|
418
419
|
});
|
|
419
420
|
},
|
|
420
421
|
scrollByY: (value, duration) => {
|
|
421
422
|
window.scrollBy({
|
|
422
|
-
top: value
|
|
423
|
+
top: value,
|
|
424
|
+
behavior: duration ? 'smooth' : 'auto'
|
|
423
425
|
});
|
|
424
426
|
},
|
|
425
427
|
sendMessageToGroup: async (groupId, message) => {
|