mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-19 20:25:31 +00:00
Bug 4693: Slight improvements for notifications to fix problems in
headless mode
This commit is contained in:
@@ -48,7 +48,7 @@ public class NotificationPanel {
|
||||
@Override
|
||||
public void onPreviewNativeEvent(NativePreviewEvent event) {
|
||||
Element target = Element.as(event.getNativeEvent().getEventTarget());
|
||||
if (target == panel.getElement()) {
|
||||
if (event.getTypeInt() == Event.ONCLICK && target == panel.getElement()) {
|
||||
animation.cancel();
|
||||
}
|
||||
}
|
||||
@@ -71,7 +71,7 @@ public class NotificationPanel {
|
||||
double relPr = (progress - FADE_OUT_PERCENT) / (1 - FADE_OUT_PERCENT);
|
||||
panel.getElement().getStyle().setOpacity(1 - relPr);
|
||||
} else {
|
||||
panel.getElement().getStyle().setOpacity(1);
|
||||
panel.getElement().getStyle().clearOpacity();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user