Skip to content

Commit 14ac019

Browse files
committed
More Documentation
1 parent 538b532 commit 14ac019

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Sources/CodeEditTextView/TextView/TextView+Drag.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,15 @@ extension TextView: NSDraggingSource {
120120
isDragging = true
121121
setUpMouseAutoscrollTimer()
122122
}
123-
123+
124+
/// Updates the text view about a dragging session. The text view will update the ``TextView/draggingCursorView``
125+
/// cursor to match the drop destination depending on where the drag is on the text view.
126+
///
127+
/// The text view will not place a dragging cursor view when the dragging destination is in an existing
128+
/// text selection.
129+
/// - Parameters:
130+
/// - session: The dragging session that was updated.
131+
/// - screenPoint: The position on the screen where the drag exists.
124132
public func draggingSession(_ session: NSDraggingSession, movedTo screenPoint: NSPoint) {
125133
guard let windowCoordinates = self.window?.convertPoint(fromScreen: screenPoint) else {
126134
return

0 commit comments

Comments
 (0)