phaser-scrollable icon indicating copy to clipboard operation
phaser-scrollable copied to clipboard

How to Hide text that has scrolled past a certain length?

Open TaylorZaneKirk opened this issue 6 years ago • 2 comments

Hello! This is by far one of the best plugins for phaser. Amazing work!

I am however a little confused as to how to hide my text elements once the user has scrolled to a a point where they should no longer be visible.

I've tried adding the entire scroller object to a container, I've tried applying a mask to the scroller, tried modifying the default mask of the scroller, tried applying a custom mask and the scroller's mask to the text elements.

Nothing seems to work as of yet.

Could you please provide me with some tips or some guidance as to how this may be achieved?

TaylorZaneKirk avatar Mar 04 '18 01:03 TaylorZaneKirk

hm.. I can't really understand the issue... The component, basically, is a group with a mask. so anything outside the mask viewable area shouldn't be visible...

Can you provide an example of a case it doesn't work?

trueicecold avatar May 10 '18 07:05 trueicecold

Not necessarily related, but I've noticed that on Android webview, the Y position of the scrolling area seems to not work correctly (it behaves as if the scrolling area goes up to y==0). Seems to work fine on desktop.

jbum avatar Oct 30 '18 00:10 jbum