feat: contain overscroll #2503

Open
dpschen wants to merge 1 commits from dpschen/vikunja:feat/contain-overscroll into main
Member

Disables scrolling content behind

  • open mobile menu
  • modals
Disables scrolling content behind - open mobile menu - modals
dpschen added 1 commit 2024-07-01 16:11:20 +00:00
feat: contain overscroll
All checks were successful
continuous-integration/drone/pr Build is passing
8769ab93fc
Member

Hi dpschen!

Thank you for creating a PR!

I've deployed the frontend changes of this PR on a preview environment under this URL: https://2503-feat-contain-overscroll--vikunja-frontend-preview.netlify.app

You can use this url to view the changes live and test them out.
You will need to manually connect this to an api running somewhere. The easiest to use is https://try.vikunja.io/.

This preview does not contain any changes made to the api, only the frontend.

Have a nice day!

Beep boop, I'm a bot.

Hi dpschen! Thank you for creating a PR! I've deployed the frontend changes of this PR on a preview environment under this URL: https://2503-feat-contain-overscroll--vikunja-frontend-preview.netlify.app You can use this url to view the changes live and test them out. You will need to manually connect this to an api running somewhere. The easiest to use is https://try.vikunja.io/. This preview does not contain any changes made to the api, only the frontend. Have a nice day! > Beep boop, I'm a bot.
Owner

I'm still able to scroll with both cases you mentioned (tested with the global search bar and mobile menu). Both in Firefox.

I'm still able to scroll with both cases you mentioned (tested with the global search bar and mobile menu). Both in Firefox.
Author
Member

This PR only fixes the issue partially. But it's an improvement.

For the global search it doesn't work, because the fix only applies to overflowing content of the modal. overscroll-behaviour: contain will work if we apply the overflow to the modal wrapper.

Can reproduce it for the sidebar, but only if the mouse is over the background. If the mouse is over the sidebar scrolling of the background is not possible. This is the intended by overscroll-behaviour: contain

This PR only fixes the issue partially. But it's an improvement. For the global search it doesn't work, because the fix only applies to overflowing content of the modal. `overscroll-behaviour: contain` will work if we apply the overflow to the modal wrapper. Can reproduce it for the sidebar, but only if the mouse is over the background. If the mouse is over the sidebar scrolling of the background is not possible. This is the intended by `overscroll-behaviour: contain`
Author
Member

Also see the video for a better explanation of the property https://developer.chrome.com/blog/overscroll-behavior#scroll_boundaries_and_scroll_chaining

Also see the video for a better explanation of the property https://developer.chrome.com/blog/overscroll-behavior#scroll_boundaries_and_scroll_chaining
All checks were successful
continuous-integration/drone/pr Build is passing
Required
Details
This pull request doesn't have enough required approvals yet. 0 of 1 approvals granted from users or teams on the allowlist.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u feat/contain-overscroll:dpschen-feat/contain-overscroll
git checkout dpschen-feat/contain-overscroll
Sign in to join this conversation.
No description provided.