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

Weird Scroll Behavior #158

Open
frasermince opened this issue Dec 30, 2019 · 4 comments
Open

Weird Scroll Behavior #158

frasermince opened this issue Dec 30, 2019 · 4 comments

Comments

@frasermince
Copy link

Whenever selecting text near the left or right edge of the screen the webview scrolls to the next page. This causes undesired text to be selected. In addition to this whenever a selection is dragged it causes undesired scrolling.

Screenshots/Videos:

ClickScrollSmaller
DragScrollSmaller

Environment:

  • OS: iOS
  • OS version: 13.1
  • react-native version: 0.61.2
  • react-native-webview version: 8.0.1
@cuongpv219
Copy link

What version of epubjs-rn do you have?

@RuslanAndroid
Copy link

Та же проблема. Для корректной работы приходится перехватывать нативный скролл на уровне реак нейтив и блокировать его во время выделения текста.

@DDushkin
Copy link

+1 the same on Android, and also weird onLocationChange behavior

@frasermince
Copy link
Author

I realized I never responded to this. I am using the most up to date version of the library. This is definitely just the default behavior of WkWebview. After a lot of research I discovered the best solution is to just recreate select behavior manually. Even amazon does this in the Kindle app. For now I turned off text selection all together and added a custom svg rectangle around a word on tap. It's not perfect but it works for my purposes.

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

4 participants