Skip to content

Commit

Permalink
clean up removed pixels
Browse files Browse the repository at this point in the history
  • Loading branch information
brindy committed Apr 12, 2024
1 parent 0542999 commit 5417d4c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions DuckDuckGo/MainViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -472,21 +472,17 @@ class MainViewController: UIViewController {
@objc
private func keyboardDidShow() {
keyboardShowing = true
Pixel.fire(pixel: .keyboardTriggeredOpen)
}

@objc
private func keyboardWillHide() {
if homeController?.collectionView.isDragging == true {
if homeController?.collectionView.isDragging == true, keyboardShowing {
Pixel.fire(pixel: .addressBarGestureDismiss)
}
}

@objc
private func keyboardDidHide() {
if keyboardShowing {
Pixel.fire(pixel: .keyboardTriggeredClosed)
}
keyboardShowing = false
}

Expand Down

0 comments on commit 5417d4c

Please sign in to comment.