File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ import GameMath
116116 */
117117 public internal( set) var position : Position2 ? = nil
118118
119- public func loactionInView ( _ view: View ) -> Position2 ? {
119+ public func locationInView ( _ view: View ) -> Position2 ? {
120120 if let position, let window {
121121 return view. convert ( position, from: window)
122122 }
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ open class Button: Control {
101101 }
102102
103103 open override func cursorButtonDown( button: MouseButton , mouse: Mouse ) {
104- if let mouseLocation = mouse. loactionInView ( self ) {
104+ if let mouseLocation = mouse. locationInView ( self ) {
105105 if self . bounds. contains ( mouseLocation) {
106106 self . sendActions ( forEvent: . pressed)
107107 }
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ public final class SplitView: View {
114114 super. cursorMoved ( cursor)
115115 if dividerControl. isDragging {
116116 if cursor. button ( . button1) . isPressed {
117- if let new = cursor. loactionInView ( self ) ? . x {
117+ if let new = cursor. locationInView ( self ) ? . x {
118118 dividerXOffset = new
119119 }
120120 }
You can’t perform that action at this time.
0 commit comments