Skip to content

Commit

Permalink
Merge pull request #452 from ensan-hcl/fix/touch_detection
Browse files Browse the repository at this point in the history
[fix] キーボードバーの判定が広すぎる問題を修正
  • Loading branch information
ensan-hcl committed Apr 16, 2024
2 parents 95cf32f + 8e1288c commit bfd5220
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions AzooKeyCore/Sources/KeyboardViews/View/KeyboardView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ public struct KeyboardView<Extension: ApplicationSpecificKeyboardViewExtension>:
if isResultViewExpanded {
ExpandedResultView<Extension>(isResultViewExpanded: $isResultViewExpanded)
} else {
VStack(spacing: 0) {
KeyboardBarView<Extension>(isResultViewExpanded: $isResultViewExpanded)
.frame(height: Design.keyboardBarHeight(interfaceHeight: variableStates.interfaceSize.height, orientation: variableStates.keyboardOrientation))
.padding(.vertical, 6)
keyboardView(tab: defaultTab ?? variableStates.tabManager.existentialTab())
}
KeyboardBarView<Extension>(isResultViewExpanded: $isResultViewExpanded)
.frame(height: Design.keyboardBarHeight(interfaceHeight: variableStates.interfaceSize.height, orientation: variableStates.keyboardOrientation))
// バーのタッチ判定領域はpaddingより前まで
.contentShape(Rectangle())
.padding(.vertical, 6)
keyboardView(tab: defaultTab ?? variableStates.tabManager.existentialTab())
}
}
.resizingFrame(
Expand Down

0 comments on commit bfd5220

Please sign in to comment.