Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Zooming no longer functioning? #77

Open
SmartASCII opened this issue May 25, 2021 · 3 comments
Open

Zooming no longer functioning? #77

SmartASCII opened this issue May 25, 2021 · 3 comments

Comments

@SmartASCII
Copy link

It looks like somewhere along the way, zooming on documents stopped working?

I partially fixed this in ILPDFView by:

  • Assigning a maximumZoomScale to the UIScrollView in didMoveToWindow
  • Defining viewForZoomingInScrollView to return _pdfDocumentView

This almost works (albeit laggy), but updateWithZoom seems to not be correctly calculating the X-axis for the annotations on the document. Y axis seems to be spot on.

It looks like updateWithZoom is scaling its original frame with the UIScrollView's zoom factor, so I'm not sure how this is going wrong.

@PretttyC
Copy link

It looks like somewhere along the way, zooming on documents stopped working?

I partially fixed this in ILPDFView by:

  • Assigning a maximumZoomScale to the UIScrollView in didMoveToWindow
  • Defining viewForZoomingInScrollView to return _pdfDocumentView

This almost works (albeit laggy), but updateWithZoom seems to not be correctly calculating the X-axis for the annotations on the document. Y axis seems to be spot on.

It looks like updateWithZoom is scaling its original frame with the UIScrollView's zoom factor, so I'm not sure how this is going wrong.

I have the same problem, have you solved it yet?

@saormart
Copy link

Have anyone fixed this? Thanks!

@saormart
Copy link

saormart commented Oct 21, 2022

It seems that the function "scrollViewDidZoom" located in the file "ILPDFView.m" is not get called.
I was able to fix it by implementing the following code on the same file "ILPDFView.m":

#pragma mark UIScrollViewDelegate methods

  • (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView {
    return _pdfDocumentView;
    }

It fixed the zoom issue, but still messing up with the textfields...
Any better idea?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants