Skip to content

Commit

Permalink
Fix PointerEvent.transform
Browse files Browse the repository at this point in the history
  • Loading branch information
xtyxtyx committed Jan 4, 2025
1 parent b30e46b commit c9a69f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/Shaft/Gestures/PointerEvents.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public class PointerEvent {
self.delta = delta
self.buttons = buttons
self.down = down
self.transform = transform
}

public func copyWith(
Expand Down Expand Up @@ -103,7 +104,7 @@ public class PointerEvent {
///
/// This value affects what is returned by [localPosition] and [localDelta].
/// If this value is null, it is treated as the identity transformation.
public let transform: Matrix4x4f? = nil
public let transform: Matrix4x4f?

/// The [position] transformed into the event receiver's local coordinate
/// system according to [transform].
Expand Down

0 comments on commit c9a69f8

Please sign in to comment.