Skip to content

Commit bbf5cf2

Browse files
committed
makes tiles hidden by default to avoid instances of DOM overload for certain browsers
1 parent 99d9ee9 commit bbf5cf2

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

demo/tiler_demo.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/tiler.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@
2222
perspective: 1000;
2323
position: absolute;
2424
overflow: hidden;
25-
display: block;
25+
display: none;
2626
z-index: -1;
2727
width: 100%; }
2828
.tiler-viewport .tiler-tile.active {
29-
z-index: 2; }
29+
z-index: 2;
30+
display: block; }
3031
.tiler-viewport .tiler-tile.previous {
31-
z-index: 1; }
32+
z-index: 1;
33+
display: block; }

lib/tiler.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/tiler.sass

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@
2828
+gpu
2929
position: absolute
3030
overflow: hidden
31-
display: block
31+
display: none
3232
z-index: -1
3333
width: 100%
3434

3535
&.active
3636
z-index: 2
37+
display: block
3738
&.previous
3839
z-index: 1
40+
display: block

0 commit comments

Comments
 (0)