Sie sind nicht angemeldet.

1

Mittwoch, 2. Juni 2021, 22:10

scrollarea mwheel not working

Hi,

I'm trying to create a scrollarea with the scrollarea.js plugin. It worked, I can drag the content up and down. But when I actually scroll with the mouse, nothing happend, eventhough mwheel = true.

Furthermore, when I drag the content down with the mouse, the content always scroll back to the top when I release the mouse.

Is there something I need to know ?

Thanks for any help *rolleyes*

2

Donnerstag, 3. Juni 2021, 09:18

Hi,

sounds like the sizes (either the ones of the scrollarea itself or the ones of the parent layer) are wrong...

The size of the scrollarea layer should be the size of the scrollable content and the size of the parent layer the one that should be visible.

Best regards,
Klaus

3

Freitag, 4. Juni 2021, 10:07

Thank you, it work now.

I had set the height of the scrollbar in %. When set to an absolute value it work.

Last question: how do I set a scrollbar next to the scrollarea ?

Thank you very much