Skip to content
Discussion options

You must be logged in to vote

In majority of cases Drawer is like dialog (backdrop, Esc to cancel, toplevel). Your case is quite unusual, but indeed interesting.

Try that:

<script>
  import Button from "$lib/buttons/Button.svelte";
  import Drawer from "$lib/drawer/Drawer.svelte";
  import DrawerHandle from "$lib/drawer/DrawerHandle.svelte";
  import Modal from "$lib/modal/Modal.svelte";

  let open = $state(false);
  let innerOpen = $state(false);

  let parent = $state();
  let transitionParams = $state({ x: 0 });

  const init = (node) => (parent = node);

  function onintrostart(ev) {
    const rect = ev.currentTarget.getBoundingClientRect(),
      parentRect = parent.getBoundingClientRect();

    transitionParams.x 

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@RightAngler
Comment options

Answer selected by RightAngler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants