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

Tracking page #388

Closed
mremil6 opened this issue Oct 5, 2018 · 10 comments
Closed

Tracking page #388

mremil6 opened this issue Oct 5, 2018 · 10 comments
Milestone

Comments

@mremil6
Copy link

mremil6 commented Oct 5, 2018

Hi!
Thank you for this this component.

I want to show current page like 5/17, but [(page)] doesn`t updating when i scrolling in show-all-pages mode. Have you any offer?

@arvindnrbt
Copy link

We have the same issue. Is there a way to fix this?

@mremil6
Copy link
Author

mremil6 commented Oct 26, 2018

I create my own logic that considers the length of the entire pdf file and look at what position we are now

@AlexandrosG
Copy link

@mremil6 Could you please share your solution to scrolling and page tracking?

@mremil6
Copy link
Author

mremil6 commented Nov 13, 2018

@AlexandrosG sure, share example tomorrow

@mremil6 mremil6 closed this as completed Nov 13, 2018
@mremil6 mremil6 reopened this Nov 13, 2018
@AlexandrosG
Copy link

@mremil6 that’s great thanks

@mremil6
Copy link
Author

mremil6 commented Nov 14, 2018

@AlexandrosG Sorry, lost this example. I can say what you should do.

  1. Set [show-all-pages]="true"
  2. style for pdf viewer "overflow: auto"
  3. get native element height and divide it with height of 1 page.

P.S. do not forget height minus all margin between pages.

@AlexandrosG
Copy link

Thanks @mremil6. I went another way by triggering an event on scroll and updating the page through this event and disabling the "snapping" function when the page change came from a scroll.

I'm sure @VadimDez will have a less hacky version once he gets around to tackling this issue.

@amberwjq
Copy link

amberwjq commented Apr 11, 2019

@AlexandrosG
Can you elaborate how you disable the event on scroll when it comes from page change? I have a race condition because of it.

@VadimDez VadimDez added this to the 6.0.0 milestone Oct 15, 2019
@VadimDez
Copy link
Owner

@RameshkrishnanV
Copy link

@VadimDez Can you please tel me how to track page change? or Do i need to follow the logic explained by @mremil6 .
Thanks.

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

No branches or pull requests

6 participants