Skip to content

Fix multiple tap events broadcasted on macOS #587

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 5, 2025
Merged

Conversation

mickael-menu
Copy link
Member

Fixed

Navigator

  • Fixed multiple tap events broadcasted while running on macOS.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the issue of multiple tap events being broadcasted on macOS by refactoring the tap gesture handling in the EPUB navigator. The key changes include:

  • Enabling/disabling the shared tap gesture recognizer based on the navigator's state.
  • Refactoring to use a lazy-instantiated tap gesture recognizer instead of creating a new instance during view loading.
  • Updating the CHANGELOG accordingly.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
Sources/Navigator/EPUB/EPUBNavigatorViewController.swift Refactored gesture handling to prevent duplicate events.
Sources/Internal/Measure.swift Added utility functions for measuring execution time.
CHANGELOG.md Updated changelog to reflect tap event fixes.

@mickael-menu mickael-menu merged commit d2091e5 into develop May 5, 2025
5 checks passed
@mickael-menu mickael-menu deleted the fix/tap-macos branch May 5, 2025 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant