Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 408803
Collapse All | Expand All

(-)js/rwt/client/Client.js (-2 / +9 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright: 2004, 2012 1&1 Internet AG, Germany, http://www.1und1.de,
2
 * Copyright: 2004, 2013 1&1 Internet AG, Germany, http://www.1und1.de,
3
 *                       and EclipseSource
3
 *                       and EclipseSource
4
 *
4
 *
5
 * This program and the accompanying materials are made available under the
5
 * This program and the accompanying materials are made available under the
Lines 152-163 Link Here
152
      return this.getPlatform() === "android" && this.getBrowser() === "android";
152
      return this.getPlatform() === "android" && this.getBrowser() === "android";
153
    },
153
    },
154
154
155
    isMobileFirefox : function() {
156
      return this.getPlatform() === "android" && this.getBrowser() === "firefox";
157
    },
158
155
    supportsVml : function() {
159
    supportsVml : function() {
156
      return ( this.getEngine() === "mshtml" ) && ( this.getVersion() >= 5.5 );
160
      return ( this.getEngine() === "mshtml" ) && ( this.getVersion() >= 5.5 );
157
    },
161
    },
158
162
159
    supportsTouch : function() {
163
    supportsTouch : function() {
160
      return this.isMobileSafari() || this.isAndroidBrowser() || this.isMobileChrome();
164
      return    this.isMobileSafari()
165
             || this.isAndroidBrowser()
166
             || this.isMobileChrome()
167
             || this.isMobileFirefox();
161
    },
168
    },
162
169
163
    supportsSvg : function() {
170
    supportsSvg : function() {
(-)js/rwt/runtime/MobileWebkitSupport.js (-16 / +32 lines)
Lines 127-152 Link Here
127
127
128
    _registerListeners : function() {
128
    _registerListeners : function() {
129
      var target = document.body;
129
      var target = document.body;
130
      target.ontouchstart = this.__onTouchEvent;
130
      if( rwt.client.Client.isGecko() ) {
131
      target.ontouchmove = this.__onTouchEvent;
131
        target.addEventListener( "touchstart", this.__onTouchEvent, false );
132
      target.ontouchend = this.__onTouchEvent;
132
        target.addEventListener( "touchmove", this.__onTouchEvent, false );
133
      target.ontouchcancel = this.__onTouchEvent;
133
        target.addEventListener( "touchend", this.__onTouchEvent, false );
134
      target.ongesturestart = this.__onGestureEvent;
134
        target.addEventListener( "touchcancel", this.__onTouchEvent, false );
135
      target.ongesturechange = this.__onGestureEvent;
135
        target.addEventListener( "deviceorientation", this.__onOrientationEvent, false );
136
      target.ongestureend = this.__onGestureEvent;
136
      } else {
137
      target.onorientationchange = this.__onOrientationEvent;
137
        target.ontouchstart = this.__onTouchEvent;
138
        target.ontouchmove = this.__onTouchEvent;
139
        target.ontouchend = this.__onTouchEvent;
140
        target.ontouchcancel = this.__onTouchEvent;
141
        target.ongesturestart = this.__onGestureEvent;
142
        target.ongesturechange = this.__onGestureEvent;
143
        target.ongestureend = this.__onGestureEvent;
144
        target.onorientationchange = this.__onOrientationEvent;
145
      }
138
    },
146
    },
139
147
140
    _removeListeners : function() {
148
    _removeListeners : function() {
141
      var target = document.body;
149
      var target = document.body;
142
      target.ontouchstart = null;
150
      if( rwt.client.Client.isGecko() ) {
143
      target.ontouchmove = null;
151
        target.removeEventListener( "touchstart", this.__onTouchEvent, false );
144
      target.ontouchend = null;
152
        target.removeEventListener( "touchmove", this.__onTouchEvent, false );
145
      target.ontouchcancel = null;
153
        target.removeEventListener( "touchend", this.__onTouchEvent, false );
146
      target.ongesturestart = null;
154
        target.removeEventListener( "touchcancel", this.__onTouchEvent, false );
147
      target.ongesturechange = null;
155
        target.removeEventListener( "deviceorientation", this.__onOrientationEvent, false );
148
      target.ongestureend = null;
156
      } else {
149
      target.onorientationchange = null;
157
        target.ontouchstart = null;
158
        target.ontouchmove = null;
159
        target.ontouchend = null;
160
        target.ontouchcancel = null;
161
        target.ongesturestart = null;
162
        target.ongesturechange = null;
163
        target.ongestureend = null;
164
        target.onorientationchange = null;
165
      }
150
    },
166
    },
151
167
152
    _registerFilter : function() {
168
    _registerFilter : function() {

Return to bug 408803