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

infiniteViewerRef.current.on is not a function #55

Open
enk0de opened this issue Jun 22, 2023 · 2 comments
Open

infiniteViewerRef.current.on is not a function #55

enk0de opened this issue Jun 22, 2023 · 2 comments
Labels
question Further information is requested

Comments

@enk0de
Copy link

enk0de commented Jun 22, 2023

In react, when i pass ref to InfiniteViewer component, and i refer infiniteViewerRef.current.on, the error infiniteViewerRef.current.on is not a function is not a function is shown.

@daybrush
Copy link
Owner

@hoondeveloper

Is there any reason to use on?

Try using react's on prefix prop.

onDragStart, onPinch, onScroll, ...

@daybrush daybrush added the question Further information is requested label Jun 22, 2023
@enk0de
Copy link
Author

enk0de commented Jun 24, 2023

I was going to take the responsibility of handling the infinite viewer's events away from the manager that is declared as class that manages the infinite viewer, but on second thought, that's not necessary. Thanks for the answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants