@kizmann/nano-ui 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -192,7 +192,12 @@ export default {
192
192
  this.$refs.scrollbar.scrollIntoView(selector);
193
193
  },
194
194
 
195
- scrollToIndex(index)
195
+ scrollToIndex(index, delay = 0)
196
+ {
197
+ Any.delay(() => this.onScrollToIndex(index), delay);
198
+ },
199
+
200
+ onScrollToIndex(index)
196
201
  {
197
202
  if ( ! this.$refs.scrollbar ) {
198
203
  return;
@@ -219,7 +224,12 @@ export default {
219
224
  this.scrollTo(0, targetTop);
220
225
  },
221
226
 
222
- scrollTo(x = 0, y = 0)
227
+ scrollTo(x = 0, y = 0, delay = 0)
228
+ {
229
+ Any.delay(() => this.onScrollTo(x, y), delay);
230
+ },
231
+
232
+ onScrollTo(x = 0, y = 0)
223
233
  {
224
234
  if ( ! this.$refs.scrollbar ) {
225
235
  return;