fix(scroll): handle low duration in scrollTo

This commit is contained in:
Mike Hartington
2017-01-04 10:56:59 -05:00
committed by Adam Bradley
parent 64346bd00b
commit 14eb2fde1d

View File

@ -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;