Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 questions #4

Open
janwillemtulp opened this issue May 17, 2019 · 5 comments
Open

2 questions #4

janwillemtulp opened this issue May 17, 2019 · 5 comments

Comments

@janwillemtulp
Copy link

  1. what's going on with these lower case element names, like <svelte-scroller-outer> that only seem to map to css classes?

  2. what is the best way to allow pointer events for the fixed part without changing the original code? Currently pointer-events are disabled, but I have an interactive component in my fixed part.

@basilesimon
Copy link

what is the best way to allow pointer events for the fixed part without changing the original code? Currently pointer-events are disabled, but I have an interactive component in my fixed part.

I'm currently wondering the same thing :)

@njdehoog
Copy link

what is the best way to allow pointer events for the fixed part without changing the original code? Currently pointer-events are disabled, but I have an interactive component in my fixed part.

@janwillemtulp were you ever able to figure this out? I'm running into the same issue.

@jeffmacinnes
Copy link

Has anyone had any luck figuring out a workaround for this? I'm hitting the same issue as well....

@njdehoog
Copy link

Yes, here's a demo project: https://svelte.dev/repl/32abb5e2ab3a4670a19206a40ab7f375?version=3.55.1

You need the following CSS:

[slot="background"] {
  pointer-events: all;
}

[slot="foreground"] {
  pointer-events: none;
}

And then you need to make sure the parent doesn't 'eat' the pointer events:

.your-container-div {
  pointer-events: none;
}

@jeffmacinnes
Copy link

@njdehoog Amazing! Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants