svelte-scroller icon indicating copy to clipboard operation
svelte-scroller copied to clipboard

2 questions

Open janwillemtulp opened this issue 6 years ago • 5 comments

  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.

janwillemtulp avatar May 17 '19 16:05 janwillemtulp

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 :)

basilesimon avatar Jan 31 '21 13:01 basilesimon

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.

njdehoog avatar Jul 11 '22 12:07 njdehoog

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

jeffmacinnes avatar Jan 25 '23 23:01 jeffmacinnes

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;
}

njdehoog avatar Jan 26 '23 09:01 njdehoog

@njdehoog Amazing! Thank you so much!

jeffmacinnes avatar Jan 26 '23 22:01 jeffmacinnes