aboutsummaryrefslogtreecommitdiffstats
path: root/client/src/com/vaadin/Vaadin.gwt.xml
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/com/vaadin/Vaadin.gwt.xml')
-rw-r--r--client/src/com/vaadin/Vaadin.gwt.xml35
1 files changed, 34 insertions, 1 deletions
diff --git a/client/src/com/vaadin/Vaadin.gwt.xml b/client/src/com/vaadin/Vaadin.gwt.xml
index d4eb454e86..711729f64f 100644
--- a/client/src/com/vaadin/Vaadin.gwt.xml
+++ b/client/src/com/vaadin/Vaadin.gwt.xml
@@ -1,4 +1,3 @@
-
<module>
<!-- This GWT module inherits all Vaadin client side functionality modules.
This is the module you want to inherit in your client side project to be
@@ -64,4 +63,38 @@
<!-- Remove IE6/IE7 permutation as they are not supported -->
<set-property name="user.agent" value="ie8,ie9,ie10,gecko1_8,safari,opera" />
+ <!-- Pointer event support -->
+ <define-property name="modernie" values="none,yes" />
+ <property-provider name="modernie"><![CDATA[
+ {
+ var ua = $wnd.navigator.userAgent;
+ if (ua.indexOf('IE') == -1 && ua.indexOf('Trident') != -1) { return 'yes'; }
+ return 'none';
+ }
+ ]]></property-provider>
+
+ <set-property name="modernie" value="none">
+ <none>
+ <when-property-is name="user.agent" value="gecko1_8" />
+ </none>
+ </set-property>
+
+ <!-- Fall through to this rule when the browser doesn't support pointer
+ event -->
+ <replace-with class="com.vaadin.client.event.PointerEventSupportImpl">
+ <when-type-is class="com.vaadin.client.event.PointerEventSupportImpl" />
+ </replace-with>
+
+ <replace-with
+ class="com.vaadin.client.event.PointerEventSupportImplModernIE">
+ <when-type-is class="com.vaadin.client.event.PointerEventSupportImpl" />
+ <none>
+ <when-property-is value="none" name="modernie" />
+ </none>
+ </replace-with>
+
+ <replace-with class="com.vaadin.client.event.PointerEventSupportImplIE10">
+ <when-type-is class="com.vaadin.client.event.PointerEventSupportImpl" />
+ <when-property-is value="ie10" name="user.agent" />
+ </replace-with>
</module>