Skip to content

Commit

Permalink
Add a link to help page in location permission popup (#2017)
Browse files Browse the repository at this point in the history
Task/Issue URL: https://app.asana.com/0/1177771139624306/1203159336272690/f

Description:
This change adds an extra text button on the bottom of location permission popup. Clicking the button
opens DDG help page explaining how location services work and that they allow websites to track users.
  • Loading branch information
ayoy authored Jan 16, 2024
1 parent 2c05719 commit 8eaa607
Show file tree
Hide file tree
Showing 3 changed files with 163 additions and 61 deletions.
4 changes: 2 additions & 2 deletions DuckDuckGo/MainWindow/MainView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,13 @@ final class MainView: NSView {
}

override func mouseEntered(with event: NSEvent) {
if let mouseAboveWebViewTrackingArea, event.trackingArea == mouseAboveWebViewTrackingArea {
if event.type == .mouseEntered, let mouseAboveWebViewTrackingArea, event.trackingArea == mouseAboveWebViewTrackingArea {
isMouseAboveWebView = true
}
}

override func mouseExited(with event: NSEvent) {
if let mouseAboveWebViewTrackingArea, event.trackingArea == mouseAboveWebViewTrackingArea {
if event.type == .mouseExited, let mouseAboveWebViewTrackingArea, event.trackingArea == mouseAboveWebViewTrackingArea {
isMouseAboveWebView = false
}
}
Expand Down
Loading

0 comments on commit 8eaa607

Please sign in to comment.