|
|
@ -419,7 +419,7 @@ export default function Measure() { |
|
|
|
timerRef.current = setInterval(() => { |
|
|
|
console.log('111!'); |
|
|
|
onHandleMove(type); |
|
|
|
}, 500); |
|
|
|
}, 100); |
|
|
|
console.log(timerRef.current) |
|
|
|
}; |
|
|
|
|
|
|
@ -576,7 +576,7 @@ export default function Measure() { |
|
|
|
onTouchStart={() => handlePressStart('left')} |
|
|
|
onTouchEnd={handlePressEnd} |
|
|
|
onContextMenu={handleContextMenu} |
|
|
|
className="text-[20px] ml-[5px]" |
|
|
|
className="text-[20px] ml-[5px] icon-button" |
|
|
|
alt="左移" |
|
|
|
/> |
|
|
|
|
|
|
@ -587,7 +587,7 @@ export default function Measure() { |
|
|
|
onTouchStart={() => handlePressStart('right')} |
|
|
|
onTouchEnd={handlePressEnd} |
|
|
|
onContextMenu={handleContextMenu} |
|
|
|
className="text-[20px] ml-[5px]" |
|
|
|
className="text-[20px] ml-[5px] icon-button" |
|
|
|
alt="右移" |
|
|
|
/> |
|
|
|
|
|
|
@ -598,7 +598,7 @@ export default function Measure() { |
|
|
|
onTouchStart={() => handlePressStart('up')} |
|
|
|
onTouchEnd={handlePressEnd} |
|
|
|
onContextMenu={handleContextMenu} |
|
|
|
className="text-[20px] ml-[5px]" |
|
|
|
className="text-[20px] ml-[5px] icon-button" |
|
|
|
alt="上移" |
|
|
|
/> |
|
|
|
|
|
|
@ -609,7 +609,7 @@ export default function Measure() { |
|
|
|
onTouchStart={() => handlePressStart('down')} |
|
|
|
onTouchEnd={handlePressEnd} |
|
|
|
onContextMenu={handleContextMenu} |
|
|
|
className="text-[20px] ml-[5px]" |
|
|
|
className="text-[20px] ml-[5px] icon-button" |
|
|
|
alt="下移" |
|
|
|
/> |
|
|
|
|
|
|
@ -620,7 +620,7 @@ export default function Measure() { |
|
|
|
onTouchStart={() => handleRotationPressStart('left')} |
|
|
|
onTouchEnd={handlePressEnd} |
|
|
|
onContextMenu={handleContextMenu} |
|
|
|
className="text-[20px] ml-[5px]" |
|
|
|
className="text-[20px] ml-[5px] icon-button" |
|
|
|
alt="逆时针旋转" |
|
|
|
/> |
|
|
|
|
|
|
@ -631,7 +631,7 @@ export default function Measure() { |
|
|
|
onTouchStart={() => handleRotationPressStart('right')} |
|
|
|
onTouchEnd={handlePressEnd} |
|
|
|
onContextMenu={handleContextMenu} |
|
|
|
className="text-[20px] ml-[5px]" |
|
|
|
className="text-[20px] ml-[5px] icon-button" |
|
|
|
alt="顺时针旋转" |
|
|
|
/> |
|
|
|
</section> |
|
|
|