You've already forked SmartisanNote.Remake
\"fix: 修复图片排序功能,恢复正确的阈值设置\"
This commit is contained in:
@@ -1090,7 +1090,7 @@ const checkAndSwapImages = (draggedImg, deltaY) => {
|
|||||||
|
|
||||||
// 检查是否与目标图片重叠,使用更精确的碰撞检测
|
// 检查是否与目标图片重叠,使用更精确的碰撞检测
|
||||||
// 当拖拽图片覆盖目标图片高度的三分之二时触发排序
|
// 当拖拽图片覆盖目标图片高度的三分之二时触发排序
|
||||||
const overlapThreshold = targetRect.height * 0.01
|
const overlapThreshold = targetRect.height * 0.67
|
||||||
const distance = Math.abs(draggedCenterY - targetCenterY)
|
const distance = Math.abs(draggedCenterY - targetCenterY)
|
||||||
|
|
||||||
if (distance < overlapThreshold) {
|
if (distance < overlapThreshold) {
|
||||||
|
|||||||
Reference in New Issue
Block a user