mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +08:00
fix(scroll): handle low duration in scrollTo
This commit is contained in:

committed by
Adam Bradley

parent
64346bd00b
commit
14eb2fde1d
@ -421,6 +421,13 @@ export class ScrollView {
|
||||
return promise;
|
||||
}
|
||||
|
||||
if (duration < 32) {
|
||||
self.setTop(y);
|
||||
self.setLeft(x);
|
||||
done();
|
||||
return promise;
|
||||
}
|
||||
|
||||
x = x || 0;
|
||||
y = y || 0;
|
||||
|
||||
|
Reference in New Issue
Block a user