You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But on mobile bounds.top, and bounds.bottom are both 0. And when they are zero the scroll starts to shift in erroneous ways. At first the values are present but after scrolling a bit the values go to 0.
I fixed this by simply checking for the existence of those values
In the same function the getting the bounds using let scrollBounds = scroller.getBoundingClientRect(); doesn't work if using the body as scrollingContainer. The return value of getBoundingClientRect() is not the same every time, and it changes depending on the scroll position. The code was written expecting getBoundingClientRect() to return the same value no matter the scroll position.
Quill 2.0 has been released (announcement post) with many changes and fixes. If this is still an issue please create a new issue after reviewing our updated Contributing guide 🙏
There are 2 seperate issues with scroll into view on mobile
scroll into view function uses the following code
But on mobile bounds.top, and bounds.bottom are both 0. And when they are zero the scroll starts to shift in erroneous ways. At first the values are present but after scrolling a bit the values go to 0.
I fixed this by simply checking for the existence of those values
In the same function the getting the bounds using
let scrollBounds = scroller.getBoundingClientRect();
doesn't work if using the body as scrollingContainer. The return value ofgetBoundingClientRect()
is not the same every time, and it changes depending on the scroll position. The code was written expectinggetBoundingClientRect()
to return the same value no matter the scroll position.My solution is below:
Platforms:
Tested on Safari and Chrome, and all Cordova Platforms using Quill 1.2.5
Version:
1.2.5
The text was updated successfully, but these errors were encountered: