Skip to content

Commit

Permalink
add pointerEvents option
Browse files Browse the repository at this point in the history
  • Loading branch information
mhkeller committed Apr 24, 2020
1 parent 301f350 commit 5d36bff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/LayerCake.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import defaultReverses from './settings/defaultReverses.js';
export let ssr = false;
export let pointerEvents = true;
export let width = undefined;
export let height = undefined;
Expand Down Expand Up @@ -280,6 +281,7 @@
{#if (ssr === true || typeof window !== 'undefined')}
<div
class="layercake-container"
style="{pointerEvents === false ? 'pointer-events:none;' : ''}"
bind:clientWidth={containerWidth}
bind:clientHeight={containerHeight}
>
Expand Down

0 comments on commit 5d36bff

Please sign in to comment.