Skip to content
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

feat(frontend/presenter): only advance on click if focused #577

Merged
merged 1 commit into from
Jun 3, 2020

Conversation

Harjot1Singh
Copy link
Member

Summary of PR

Only advances the presenter slide if the window is focused. Uses an approach of taking a mouse click as a focus event on anything that is not Mac, and the focus event on Mac.

See #388 for more description and considered solutions.

Tests for unexpected behavior

  • Mac
  • Windows
  • Electron vs Browser

Time spent on PR

  • 1hr20

Linked issues

Closes #388

Reviewers

@bhajneet

@bhajneet
Copy link
Member

bhajneet commented Jun 3, 2020 via email

@Harjot1Singh
Copy link
Member Author

Can you test this on an iPad/mobile device of sorts? Single tap should advance a line

On Wed, Jun 3, 2020, 08:06 Harjot Singh @.***> wrote: @Harjot1Singh <@Harjot1Singh> requested your review on: #577 <#577> feat(frontend/presenter): only advance on click if focused. — You are receiving this because your review was requested. Reply to this email directly, view it on GitHub <#577 (comment)>, or unsubscribe <github.com/notifications/unsubscribe-auth/ADLZ3BZVW2NEK3BUWTUZV6DRUY4DNANCNFSM4NRTJJDQ> .

It does

Copy link
Member

@bhajneet bhajneet left a comment

Choose a reason for hiding this comment

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

Review is small formality -- I cannot test all the platforms, but code lgtm

@Harjot1Singh Harjot1Singh merged commit f5ec302 into shabados:dev Jun 3, 2020
@Harjot1Singh Harjot1Singh deleted the 388-no-focus-click branch June 3, 2020 22:03
saihaj pushed a commit to saihaj/ShabadOSpresenter that referenced this pull request Jul 14, 2020
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.

Don't change line when window isn't focused on mouse click
2 participants