.expand() not yet for lazy loading pictures, can you add it?

I checked the expand for lazy loading, but still not possible
but the other .gesture() and .drag() is possible..
so maybe .expand() can also for lazy loading images?


so I can make this

new Label("MENU",100).pos(140,20,LEFT,TOP);
const menu = new Pic("https://i.imgur.com/NJs8YXr.png")
.expand(0,0,400,0).pos(10,10,LEFT,TOP).tap((e)=>{ 
      e.target.removeFrom();
                                                                    
   new Button(AUTO,AUTO,"show menuicon").center().tap(()=>{menu.pos(10,10,LEFT,TOP); S.update()})
   S.update()
   //returnToMenu();
});

thanks

1 Like

Just so everyone is clear, as this may be misleading, expand() increases the hitarea - it does not expand a menu. We will look at adding it to the lazy load system. I think it should work and makes sense to do so as expand is a way we can make the transparent parts of an image interactive.

1 Like