I'm developing desktop application using JavaFX. I have a ListView with a custom CellFactory. Each cell contains multiple nodes: Button, TextFlow, Image etc. So here's a problem: when I am trying to scroll using mouse wheel - everything works smoothly. But when I scroll using laptop's touchpad I experience major lags if mouse cursor is on the cell (Everything is smooth if mouse cursor is out of the cell).
Could you please tell me how to make everything work smooth for all the cases? I considered setDisable and mouseTransparent, but they didn't suit me because I have buttons in the cells.