hi

hi,

is lightning not handling nested scrolling an intended mechanic? for example, a scrolling panel on a vertical page I scroll down to prevents me from scrolling back up. also, events like swipe down don’t fire when the app drawer can be scrolled.

I’ve seen posts asking similar things, but didn’t find an answer.

5 Commentsto hi

  1. Jay M says:

    IIRC its because theres no way to tell the difference between swiping and scrolling

  2. Tored says:

    Jay M so it’s not working by design? bummer. I hoped swipe up would be triggered when scrolling to the bottom of a container and then swiping up.

  3. Jay M says:

    its probably possible with script since you can set the touch distance but I cant see that working properly which could be why its not a built in feature in the first place. A vertical scrolling panel should work on a vertical scrolling page but only if you start scrolling the page outside of the panel. The script api has a item.setVerticalGrab() method which is useful for things like a list view since you want to scroll the list without the page scrolling but as far as im aware there’s no built in way to do this.

  4. Tored says:

    Jay M alright, I’ll try to work it using a script. from a programmer’s perspective, if the user drags their finger down on a panel and the panel’s scroll position at the start of the drag is 0, it should be possible to interpret that drag just like a drag on the panel’s container. that’s why I was wondering if there is an option for it in the launcher.

    thanks a lot!

  5. Tored says:

    one more question, is there a way to handle any touch event using a script, or are the only available ones the ones you can see in panel/desktop events?

    edit: nevermind, I think I found it

    edit 2: it gives me “getEvent() is undefined” after using a script in the “touch” event. huh.

Leave a Reply

Your email address will not be published. Required fields are marked *