I can't create scroll in the new version of playcanvas.

I have several scrolls in my project and since I updated to the new version it doesn’t let me scroll directly or it does it wrong. I get this warning by console. Does anyone know anything?

playcanvas.dbg.js?version=1.50.0:75197 [Violation] Added non-passive event listener to a scroll-blocking ‘touchmove’ event. Consider marking event handler as ‘passive’ to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952

Not sure what you mean by scroll.

What are you scrolling? Can you share an example with the steps to reproduce the issue please?

I’m making a mobile game and I’m interested in making a vertical scroll with the finger movement. But when I test it, it goes vertically and horizontally, also when I test it on mobile it doesn’t work correctly, I’ll show you some images of how it’s configured.

4

6

Can you share a test project please that doesn’t work how you expect.

I’ve quickly tried this in a new project and seems to work fine.

Sorry, I could only send one file at a time.

ok give me a few minutes to put it in a project that is only this part.

https://playcanvas.com/editor/scene/1219806 I’ve put in this scene only the scrolling, ignore the clicking errors. let me know if you can’t open it.

to test the scroll you will have to do an f12 and refresh.

Alright, better version: https://playcanvas.com/editor/scene/1291682

There were two issues:

  1. UICatalog has rotation which screws up the input. Set it to 0, 0, 0

  2. PanelSelection needs ‘Use Input’ to be enabled so that the user can scroll it with touch and mouse pointer.

1 Like

you are a genius, it was about the input, thank you very much.