css - Fixed Div Won't Scroll In Desktop Safari -
it's hard reproduce generic version of behavior, please see codepen in debug mode (in safari):
https://s.codepen.io/stephen_marsh/debug/ojzxml/nqkzynzlqxya
when click yellow "shop look" trigger in header image, drawer of products should slide out. in chrome , firefox, drawer scroll intended.
in safari, drawer not scroll until inside clicked, , scroll behavior laggy.
interestingly, magic in codepen wrapper fixes behavior completely, if viewed in alternate mode full page:
https://codepen.io/stephen_marsh/full/ojzxml/
now in safari fixed div scrolls intended , smooth.
can figure out causing behavior? thanks
scss:
$product-drawer-header-height: 84px; $navigation-height-mobile: 60px; $navigation-height-desktop: 96px; .product-drawer-header { transform: translatex(100%); z-index: map-get($z-index, product-drawer-header); background-color: map-get($colors, teal); padding-left: 24px; padding-right: 24px; position: fixed; right: 0; top: 60px; width: 75%; color: white; border-color: white; @media #{$query-sm} { top: 96px; width: 33.333%; } .header-module-1 { width: 100%; margin: 24px 24px 24px 0px; color: map-get($colors, white); border-color: map-get($colors, white); { color: map-get($colors, white); } } } .product-drawer { transform: translatex(100%); z-index: map-get($z-index, product-drawer); color: map-get($colors, white); background-color: map-get($colors, teal); padding-top: 84px; position: fixed; right: 0; top: 60px; overflow: scroll; width: 75%; height: calc(100vh - #{$navigation-height-mobile + $product-drawer-header-height}); @media #{$query-sm} { top: 96px; width: 33.333%; // border: 1px solid yellow; margin-bottom: 96px; height: calc(100vh - #{$navigation-height-desktop + $product-drawer-header-height}); } .product-tile { margin-bottom: 24px; } } thanks looking, -stephen
wiki
Comments
Post a Comment