You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, May 17th 2021, 3:08am

mousewheel scroll in custom html plugins in firefox

Hi!

So we have some plugins (layers) with custom html content, some of which needs to be scrollable. We use an eventlistener on the div, and call event.preventDefault() and this allows us to stop the event from going to the viewer and scroll that div as expected. This works fine in Chrome, not in Firefox, however.

Any idea on how to make it work in FF too or an alternate solution that would work across all major browsers?

Thanks!

2

Tuesday, May 25th 2021, 4:42pm

Hi,

Firefox uses the DOMMouseScroll event.

krpano internally supports these events for the mouse wheel support:
- DOMMouseScroll
- mousewheel
- wheel

Best regards,
Klaus

3

Tuesday, May 25th 2021, 11:44pm

Hi!


Thanks, but that's not what I'm asking.
See this, click on the hotspot marked '01'. Make sure the window is short enough so that a scrollbar appears to the right of the text.

This is not the best example, because I think this was done with the OverlayScrollbar plugin, but the same problem happens with the native scrollbar. On Chrome, you can just use the mousewheel to scroll and it happens naturally. On Firefox, it doesn't work. On Chrome, I'm not using any custom event, just an overflow: auto or overflow: scroll (when using the native scrollbar).

So it's as if on Firefox, krpano is eating the scroll (although granted the pano is not zooming in the background).

Does this make sense to you? :)

4

Thursday, June 3rd 2021, 10:52am

Hi,

what is the 'OverlayScrollbar plugin' ?

For a working example please see this one:
https://krpano.com/examples/#pp-blur

Click there on the 'HTML' hotspot to see how to open an arbitrary html content that is also scroll-able.

Best regards,
Klaus

5

Saturday, June 5th 2021, 6:06pm

Sorry, if I wasn't clear. Overlayscrollbars is a 3rd party plugin , not for krpano, just a generic one.

But like I said, we ditched it some time ago in favor of the native scrollbar and still, we have issues in Firefox.

Thanks, I'll look into that example!