Skip to content

Commit f2cf248

Browse files
committed
Fix typos
1 parent e86d28e commit f2cf248

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Sources/GateEngine/System/HID/Mouse/Mouse.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

Sources/GateEngine/UI/Button.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

Sources/GateEngine/UI/SplitViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)