Skip to content

Commit

Permalink
Workaround for the pinned-element-scroll-trap
Browse files Browse the repository at this point in the history
For Details see here: #34
  • Loading branch information
janpaepke committed Mar 25, 2014
1 parent 2187c12 commit 22d8ca1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions css/examples.css
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,13 @@ a.viewsource:before {
margin-top: 20px;
}

.disablePointerEvents {
pointer-events: none;
}
.disablePointerEvents a {
pointer-events: auto;
}

/*
Codehighlighting
Expand Down
4 changes: 2 additions & 2 deletions examples/advanced/custom_containers.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ <h2>One page can have multiple scroll containers.</h2>
<section class="demo">
<div class="spacer s2"></div>
<div class="spacer s0" id="trigger1"></div>
<div class="animated box1 red">
<div class="animated box1 red disablePointerEvents">
<p>Wait for green.</p>
<a href="#" class="viewsource">view source</a>
</div>
Expand Down Expand Up @@ -68,7 +68,7 @@ <h2>One page can have multiple scroll containers.</h2>
<section class="demo">
<div class="spacer s4"></div>
<div class="spacer s0" id="trigger2"></div>
<div class="animated box1 red">
<div class="animated box1 red disablePointerEvents">
<p>Wait for green.</p>
<a href="#" class="viewsource">view source</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion examples/expert/mobile_advanced.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ <h2>Pure mobile magic.</h2>
<section class="demo">
<div class="spacer s2"></div>
<div class="spacer s0" id="trigger"></div>
<div id="mobileadvanced" class="box1 blue">
<div id="mobileadvanced" class="box1 blue disablePointerEvents">
<p>What's the Point?</p>
<a href="#" class="viewsource">view source</a>
</div>
Expand Down

0 comments on commit 22d8ca1

Please sign in to comment.