调整预览图精度bug

This commit is contained in:
zhw2590582 committed 2019-04-22 22:06:02 +08:00
1 parent 09ef4c975b
commit bf22c92209
6 files changed
+8 -6

No files matched your search

+1 -1
View File
@@ -3823,7 +3823,7 @@
number = _art$option$thumbnail.number,
column = _art$option$thumbnail.column;
var perWidth = $progress.clientWidth / number;
var perIndex = Math.ceil(posWidth / perWidth);
var perIndex = Math.floor(posWidth / perWidth);
var yIndex = Math.ceil(perIndex / column) - 1;
var xIndex = perIndex % column || column - 1;
setStyle($control, 'backgroundImage', "url(".concat(url, ")"));