Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
改动点:逻辑与改为逻辑或
逻辑与需要 deltaX 和 deltaY 都有位移才会更新文本的位置,如果是水平横向或纵向拖拽文本,则不会跟随鼠标移动;而实际上,在拖拽时,只要鼠标在水平或竖直方向有位移,都应该更新文本位置,故改为逻辑或。