-
Notifications
You must be signed in to change notification settings - Fork 227
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
3.17 - Consider the viewport while calculating _getElementDistance
#6933
3.17 - Consider the viewport while calculating _getElementDistance
#6933
Comments
@DahmaniAdame So here we will keep the threshold to be 1800px after the viewport? I also need to make sure that this value will be exactly the same in mobile and desktop or not. I have a scenario that I don't know if it'll affect the approach here or not, |
Yes, it will be 1800px. |
The risk is the same also for OCI where it's probably more negative impact |
Awesome, many thanks @DahmaniAdame @piotrbak |
@wp-media/product |
@wordpressfan it will be quite rare to have something in the precise point of the threshold. But if it does, we should collect only the parent's hash for now. |
Is your feature request related to a problem? Please describe.
Consider the viewport size when calculating element's distance to the viewport to avoid misuse of filtering the threshold.
Describe the solution you'd like
N/A
Describe alternatives you've considered
N/A
Additional context
Related to PR - #6929
The text was updated successfully, but these errors were encountered: