Skip to content

Commit

Permalink
now respecting enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyalPineapple committed Mar 21, 2024
1 parent 5e6ea41 commit 8f5a342
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BlueprintUILists/Sources/ListReorderGesture.swift
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ fileprivate extension ListReorderGesture
proxyElement.accessibilityTraits.formUnion(.button)
proxyElement.accessibilityCustomActions = model.accessibilityActions()

recognizer.isEnabled = model.isEnabled
recognizer.isEnabled= model.isEnabled

recognizer.apply(actions: model.actions)
minimumPressDuration = model.begins == .onLongPress ? 0.5 : 0.0
Expand All @@ -213,6 +213,7 @@ fileprivate extension ListReorderGesture

override var accessibilityElements: [Any]? {
get {
guard recognizer.isEnabled else { return super.accessibilityElements }
proxyElement.accessibilityFrame = self.accessibilityFrame
proxyElement.accessibilityActivationPoint = self.accessibilityActivationPoint
return [containerView, proxyElement]
Expand Down

0 comments on commit 8f5a342

Please sign in to comment.