Skip to content

Commit 5c2a690

Browse files
committed
fix Resize.ts file
1 parent 2a4689c commit 5c2a690

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/rangeSliderFox/mvc/view/Resize.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Resize {
3333

3434
@boundMethod
3535
private resizeEnd() {
36-
const timeInterval = Number(new Date()) - Number(this.currentTime);
36+
const timeInterval = new Date().getTime() - this.currentTime.getTime();
3737

3838
if (timeInterval < this.sleep) {
3939
setTimeout(this.resizeEnd, this.sleep);

0 commit comments

Comments
 (0)