Use requestAnimationFrame to position modal opening#514
Use requestAnimationFrame to position modal opening#514RobbieTheWagner merged 1 commit intomasterfrom
Conversation
This helps to mitigate some of the glitchy scrolling where the modal overlay opening would visible jump around on scroll. It does not totally fix the problem, but is much better. A possible way to improve things further would be to position with CSS transforms, rather than changing x and y.
|
@dipiana This should have fixed things a good bit. I think the one improvement we could still make, is to just do If you want to give it a try, let me know! Otherwise, I think we're in a lot better place after this PR. |
|
@rwwagner90, I am trying to understand the code at the moment, javascript is not my strength but let's see. Thanks. |
|
@dipiana it's for |
This helps to mitigate some of the glitchy scrolling where the modal overlay opening would visible jump around on scroll. It does not totally fix the problem, but is much better.
A possible way to improve things further would be to position with CSS transforms, rather than changing x and y.