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

Move pageChanged event name into events.js #461

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Move pageChanged event name into events.js #461

wants to merge 3 commits into from

Conversation

sfal
Copy link

@sfal sfal commented Sep 30, 2020

Fixes #460

@codecov
Copy link

codecov bot commented Sep 30, 2020

Codecov Report

Attention: Patch coverage is 33.33333% with 4 lines in your changes missing coverage. Please review.

Project coverage is 62.52%. Comparing base (dd08f52) to head (56fa294).
Report is 1213 commits behind head on master.

Files with missing lines Patch % Lines
src/js/BookReader/Mode2Up.js 20.00% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #461   +/-   ##
=======================================
  Coverage   62.52%   62.52%           
=======================================
  Files          36       36           
  Lines        3712     3712           
  Branches      705      707    +2     
=======================================
  Hits         2321     2321           
+ Misses       1123     1121    -2     
- Partials      268      270    +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@iisa
Copy link
Contributor

iisa commented Oct 3, 2020

hi @sfal thanks for taking this on. since you have a PR of this fix already, let's push to get this done. can you:

  1. rebase and resolve the branch conflict
  2. show and confirm that the event is properly firing by screen recording or unit test:

Quick how to screen record:

  • run local dev server
  • go to dev console and add in an event listener to the event BookReader:pageChanged that will output console.log('page has changed', e) when the page turns
  • grab a screen recording of it and make a gif showing the dev console output as the page turns (this is a relatively easy tool to do that: https://ezgif.com/video-to-gif)

@sfal
Copy link
Author

sfal commented Oct 3, 2020

Hey @iisa thank you. Here's a gif showing the event is emitted. The quality got really poor when going from video to gif, hope it's still good enough to understand what is happening.

pageChanged

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.

Move pageChanged event name into events.js
2 participants