Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Grid with virtual scrolling cannot be scrolled on MS Surface with swipes. #3220

Closed
simonssspirit opened this issue May 18, 2017 · 1 comment

Comments

@simonssspirit
Copy link
Contributor

Bug report

The Grid with virtual scrolling cannot be scrolled on MS Surface with swipes.

Still, it can be scrolled only via the scrollbar.

Reproduction of the problem

The issue can be observed in our demo on a Surface tablet: http://demos.telerik.com/kendo-ui/grid/virtualization-local-data

Environment

  • Browser: [all (Surface)]
@Stamo-Gochev
Copy link
Contributor

The behavior is expected as the MS Surface is a hybrid device (supports both mouse and touch interaction) and our tests show that mixing mobile and desktop interaction results in worse user experience.

The so-called "kinetic scrolling" implementation that is used for other devices (running on Android or iOS for example) is due to the fact that their scrollbars are only shown when dragging the scrollable area (the content of the grid), which prevents the user from dragging the scrollbar itself.

This is not the case with MS Surface as the scrollbars are visible at all items. That is why the kinetic scrolling is not enabled by default:

https://github.com/telerik/kendo-ui-core/blob/master/src/kendo.core.js#L2246

However, it can be manually enabled if such interaction is required:

$(document).ready(function() {
    var kineticScrollNeeded = kendo.support.kineticScrollNeeded; //cache the original value
    
    if (shouldEnableKineticScroll) {        
        kendo.support.kineticScrollNeeded = true;
    }
    
    //initialize the grid
    
    kendo.support.kineticScrollNeeded = kineticScrollNeeded; //restore the original value
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants