Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElshad Seyidmammadov2016-04-27 15:30:31 -0400
committerGerrit Code Review @ Eclipse.org2016-04-28 14:59:14 -0400
commit8e19ee88f564cb6b1585a45fb5f5f16c7b6e0cff (patch)
tree0aeda67186ddac1e6b5c63015a86607d6bd693f8 /bundles
parentb2c673ec1e454b84b1d0bec18bad8f9f7c9e340a (diff)
downloadorg.eclipse.rap-8e19ee88f564cb6b1585a45fb5f5f16c7b6e0cff.tar.gz
org.eclipse.rap-8e19ee88f564cb6b1585a45fb5f5f16c7b6e0cff.tar.xz
org.eclipse.rap-8e19ee88f564cb6b1585a45fb5f5f16c7b6e0cff.zip
Grid scrolling doesn't work in mobile browsers
In Mobile browsers when grid-view scrolling is enabled, the grid-view cannot be scrolled by touch moving. Scroll element was got from GridRow instead of GridRowContainer. To fix the issue, replace GridRow with the GridRowContainer. Change-Id: I6fcd206152e602c89910efe9f16f23b727e7fdd2 Signed-off-by: Elshad Seyidmammadov <elshad@eclipsesource.com>
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.rap.rwt/js/rwt/runtime/MobileWebkitSupport.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/bundles/org.eclipse.rap.rwt/js/rwt/runtime/MobileWebkitSupport.js b/bundles/org.eclipse.rap.rwt/js/rwt/runtime/MobileWebkitSupport.js
index fc74d815a1..6d2c3d9118 100644
--- a/bundles/org.eclipse.rap.rwt/js/rwt/runtime/MobileWebkitSupport.js
+++ b/bundles/org.eclipse.rap.rwt/js/rwt/runtime/MobileWebkitSupport.js
@@ -325,7 +325,7 @@ rwt.runtime.MobileWebkitSupport = {
}
if( this._isDraggableWidget( widgetTarget ) ) {
result.drag = true;
- } else if( this._isGridRow( widgetTarget ) ) {
+ } else if( this._isGridRowContainer( widgetTarget ) ) {
result.virtualScroll = true;
result.outerScroll = this._allowNativeScroll && this._isScrollableWidget( widgetTarget );
} else if( this._allowNativeScroll && this._isScrollableWidget( widgetTarget ) ) {
@@ -341,8 +341,8 @@ rwt.runtime.MobileWebkitSupport = {
_initVirtualScroll : function( widget ) {
var scrollable;
- if( widget instanceof rwt.widgets.base.GridRow ) {
- scrollable = widget.getParent().getParent();
+ if( this._isGridRowContainer( widget ) ) {
+ scrollable = widget.getParent();
} else {
scrollable = this._findScrollable( widget );
}
@@ -398,14 +398,14 @@ rwt.runtime.MobileWebkitSupport = {
return this._findScrollable( widget ) !== null;
},
- _isGridRow : function( widgetTarget ) {
- return widgetTarget instanceof rwt.widgets.base.GridRow;
+ _isGridRowContainer : function( widgetTarget ) {
+ return widgetTarget instanceof rwt.widgets.base.GridRowContainer;
},
_isSelectableWidget : function( widgetTarget ) {
var result = false;
if( widgetTarget instanceof rwt.widgets.ListItem
- || widgetTarget instanceof rwt.widgets.base.GridRow )
+ || this._isGridRowContainer( widgetTarget ) )
{
result = true;
}

Back to the top