addClickListener for a Layout, is possible to check for a DoubleClick ?

Hi,

In vaadin 8 i use this code to check if the click was a double click.

layoutComponent.addClickListener((event ->{
	if (event.isDoubleClick()) {

		......... some code

	}
});

Is it possible in vaadin 14 ?

Thanks for the help.

Giovanni Adobati:
Hi,

In vaadin 8 i use this code to check if the click was a double click.

layoutComponent.addClickListener((event ->{
	if (event.isDoubleClick()) {

		......... some code

	}
});

Is it possible in vaadin 14 ?

Thanks for the help.

No one can help ?

Try

		layoutComponent.getElement().addEventListener("dblclick", e -> {
            // some code
        });

Hi Olli, Thanks a lot, i’ll give it a try

Thanks a lot