My Vaadin web application uses custom buttons that extend from CssLayout
.
Click listeners are added to the layout/button with addLayoutClickListener
.
Often when the layout/button is clicked, no event is fired.
It seems that the event is only fired when the mouse is not moved at all between press and release. Traditional UI buttons allow mouse movement between press and release, as long as the pointer is still within the button area during release (the 'pressed and armed' state).
Do I absolutely have to use com.vaadin.ui.Button
or com.vaadin.ui.NativeButton
?
Can someone maybe provide some explanation for why the layout approach does not work reliably?