prevent event layoutClickEvent

Hi,

one way around it would be just to use some kind of flag to signal that you don’t want to handle the event in the beginning of the block, like follows:

boolean layoutClickDisabled = false;
// ...
layout.addLayoutClickListener(event -> {
    if (!layoutClickDisabled) {
      // do layout click handling
    }
});
// ...

image.addClickListener(event -> {
    layoutClickDisabled = true;
   // do image click handling 
});

-Olli