craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.28k stars 634 forks source link

[5.x]: Please fix sidebar nav overscroll effects on main content area #14611

Closed AndrewMac closed 8 months ago

AndrewMac commented 8 months ago

What happened?

If the sidebar nav has a lot of entries (for example, small vertical height or a lot of plugins) and thus overflows, if you scroll to the bottom of the nav and continue to scroll (overscroll), the content area on the right begins to scroll.

To stop this unwanted behaviour, I have updated the sidebar nav CSS with an 'overscroll-behavior' declaration:

.global-sidebar__nav { overscroll-behavior: contain; }

If that works for you, could you please consider adding that … or coming up with a better solution to stop the unwanted scrolling effects.

See https://developer.mozilla.org/en-US/docs/Web/CSS/overscroll-behavior for more info.

Thanks heaps!

Craft CMS version

Craft CMS 5.0.0-beta.8

PHP version

8.3.2

Operating system and version

macOS Sonoma 14.4

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

-

brianjhanson commented 8 months ago

Thanks for reporting! I've opened #14614 to address this.

brandonkelly commented 8 months ago

5.0.0-beta.10 is out with that fix. Thanks again!