mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
types(utils): improve isDate typing
This commit is contained in:
@@ -214,7 +214,8 @@ export default createComponent({
|
||||
if (this.zooming && touches.length === 2) {
|
||||
const distance = getDistance(touches);
|
||||
const scale = (this.startScale * distance) / this.startDistance;
|
||||
this.scale = range(scale, +this.minZoom, +this.maxZoom);
|
||||
|
||||
this.setScale(scale);
|
||||
}
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user