summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuho Nurminen <juho@vaadin.com>2014-08-18 14:23:37 +0300
committerVaadin Code Review <review@vaadin.com>2014-08-19 07:52:00 +0000
commit7143c2750c3b503e09b8d801ef73858e0f38f68e (patch)
treefa28e702c248a6fb7963d438304d34861c45dc3e
parent4dcace7123b605115efcbb395a320d460eed9c0e (diff)
downloadvaadin-framework-7143c2750c3b503e09b8d801ef73858e0f38f68e.tar.gz
vaadin-framework-7143c2750c3b503e09b8d801ef73858e0f38f68e.zip
Correct error notification behavior on touch devices (#14447)
Change-Id: I610e81aeb3e1f3f124c27e549ba58e9e28cacecf
-rw-r--r--client/src/com/vaadin/client/ui/VNotification.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/com/vaadin/client/ui/VNotification.java b/client/src/com/vaadin/client/ui/VNotification.java
index 3cc1afd5ba..1df58bb38f 100644
--- a/client/src/com/vaadin/client/ui/VNotification.java
+++ b/client/src/com/vaadin/client/ui/VNotification.java
@@ -393,7 +393,7 @@ public class VNotification extends VOverlay {
int type = DOM.eventGetType(event);
// "modal"
if (infiniteDelay || temporaryStyle == STYLE_SYSTEM) {
- if (type == Event.ONCLICK) {
+ if (type == Event.ONCLICK || type == Event.ONTOUCHEND) {
if (DOM.isOrHasChild(getElement(), DOM.eventGetTarget(event))) {
hide();
return false;
@@ -512,7 +512,7 @@ public class VNotification extends VOverlay {
notification.setWaiAriaRole(null);
notification.setDelay(delayMsec);
- if (BrowserInfo.get().isTouchDevice()) {
+ if (!notification.infiniteDelay && BrowserInfo.get().isTouchDevice()) {
new Timer() {
@Override
public void run() {