Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 1 month ago
mouse events are not working in Tablets and mobile browsers?
Hi,
I am using org.vaadin.marcus.MouseEvents Addon for catch mouse dranging functions and controlling by MouseOverListener and MouseOutListener. Its working fine on Desktop and Laptops. But its not working on Tablets and Mobiles.
Please give a any sugguestion to fix this issue.
Sample code that working fine in Desktop and Laptops:
Window subWindowTest = new Window("Test sample");
subWindowTest.setVisible(false);
UI.getCurrent().addWindow(subWindowTest);
org.vaadin.marcus.MouseEvents mouseOverSubWindow = org.vaadin.marcus.MouseEvents.enableFor(subWindowTest);
mouseOverSubWindow.addMouseOverListener(new MouseOverListener() {
@Override
public void mouseOver() {
subWindowTest.setVisible(true);
}
});
org.vaadin.marcus.MouseEvents mouseOutSubWindow= org.vaadin.marcus.MouseEvents.enableFor(subWindowTest);
mouseOutSubWindow.addMouseOutListener(new MouseOutListener() {
@Override
public void mouseOut() {
subWindowTest.setVisible(false);
}
});
}
Thanks in Advance..!
Last updated on
You cannot reply to this thread.