Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道如何确定图像或通用对象的移动方向(右、左、上或下)。并且“允许”仅在某个方向拖放,谢谢^^
存储对象的位置并将其与对象移动时的位置进行比较,以查看对象移动的方向。