Skip to content

Touchscreen and FixedCols. usesTouch override would be nice #28

Description

@rry-rry

A group of users raised an issue today on a page enabled with Grid.js stating that the first column was not freezing on horizontal scroll. This group was all using Dell laptops with touch screens, which caused the 'fixedCols' attribute to fail.

L76: this.options.fixedCols = (!this.usesTouch) ? this.options.fixedCols : 0;

I solved it by adding delete window.ontouchstart; before the Grid() call.

If it were possible to set usesTouch=false in the Grid options it would be a more elegant solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions