Skip to content

Commit

Permalink
main-map needs its own stacking context
Browse files Browse the repository at this point in the history
(closes #876)

The rules for stacking contexts are complicated
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context

What I think was happening here was:

Without an explicit z-index, the main map didn't actually establish a stacking context
for the z-index values to start making sense

When the user starts interacting, we set a transform3d on supersurface, which
forces a stacking context to appear
  • Loading branch information
bhousel committed Apr 13, 2023
1 parent b5e56e8 commit b36c328
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions css/80_app.css
Original file line number Diff line number Diff line change
Expand Up @@ -4118,6 +4118,7 @@ img.tile-debug {
user-select: none;
touch-action: none;
-webkit-touch-callout: none;
z-index: 0;
}
.main-map * {
touch-action: none;
Expand Down

0 comments on commit b36c328

Please sign in to comment.